public class KeyNavigator
extends java.lang.Object
Constructor and Description |
---|
KeyNavigator(TransformGroup targetTG)
Constructs a new key navigator object that operates on the specified
transform group.
|
Modifier and Type | Method and Description |
---|---|
void |
integrateTransformChanges()
Computes a new transform for the next frame based on
the current transform, accumulated keyboard inputs, and
elapsed time.
|
void |
processKeyEvent(java.awt.event.KeyEvent keyEvent)
Processed a keyboard event.
|
public KeyNavigator(TransformGroup targetTG)
targetTG
- the target transform grouppublic void integrateTransformChanges()
public void processKeyEvent(java.awt.event.KeyEvent keyEvent)
keyEvent
- the AWT key event