public class KeyNavigator
extends java.lang.Object
Constructor | Description |
---|---|
KeyNavigator(TransformGroup targetTG) |
Constructs a new key navigator object that operates on the specified
transform group.
|
Modifier and Type | Method | 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 eventCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.