| java.lang.Object com.sun.j3d.utils.behaviors.keyboard.KeyNavigator
KeyNavigator | public class KeyNavigator (Code) | | This is the KeyNavigator class. It accumulates AWT key events (key
press and key release) and computes a new transform based on the
accumulated events and elapsed time.
|
Constructor Summary | |
public | KeyNavigator(TransformGroup targetTG) Constructs a new key navigator object that operates on the specified
transform group. |
Method Summary | |
public void | integrateTransformChanges() Computes a new transform for the next frame based on
the current transform, accumulated keyboard inputs, and
elapsed time. | public void | processKeyEvent(KeyEvent keyEvent) Processed a keyboard event. |
KeyNavigator | public KeyNavigator(TransformGroup targetTG)(Code) | | Constructs a new key navigator object that operates on the specified
transform group. All parameters are set to their default, idle state.
Parameters: targetTG - the target transform group |
integrateTransformChanges | public void integrateTransformChanges()(Code) | | Computes a new transform for the next frame based on
the current transform, accumulated keyboard inputs, and
elapsed time. This new transform is written into the target
transform group.
This method should be called once per frame.
|
processKeyEvent | public void processKeyEvent(KeyEvent keyEvent)(Code) | | Processed a keyboard event. This routine should be called
every time a KEY_PRESSED or KEY_RELEASED event is received.
Parameters: keyEvent - the AWT key event |
|
|