|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.ding3d.SceneGraphObject
javax.media.ding3d.Node
javax.media.ding3d.Leaf
javax.media.ding3d.Behavior
javax.media.ding3d.utils.behaviors.keyboard.KeyNavigatorBehavior
public class KeyNavigatorBehavior
This class is a simple behavior that invokes the KeyNavigator to modify the view platform transform.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
KeyNavigatorBehavior(java.awt.Component c,
TransformGroup targetTG)
Constructs a key navigator behavior that uses AWT listeners and behavior posts rather than WakeupOnAWTEvent. |
|
KeyNavigatorBehavior(TransformGroup targetTG)
Constructs a new key navigator behavior node that operates on the specified transform group. |
|
| Method Summary | |
|---|---|
void |
addListener(java.awt.Component c)
Adds this behavior as a KeyListener to the specified component. |
void |
initialize()
Override Behavior's initialize method to setup wakeup criteria. |
void |
keyPressed(java.awt.event.KeyEvent evt)
|
void |
keyReleased(java.awt.event.KeyEvent evt)
|
void |
keyTyped(java.awt.event.KeyEvent evt)
|
void |
processStimulus(java.util.Enumeration criteria)
Override Behavior's stimulus method to handle the event. |
| Methods inherited from class javax.media.ding3d.Behavior |
|---|
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences |
| Methods inherited from class javax.media.ding3d.Node |
|---|
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.ding3d.SceneGraphObject |
|---|
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeyNavigatorBehavior(TransformGroup targetTG)
targetTG - the target transform group
public KeyNavigatorBehavior(java.awt.Component c,
TransformGroup targetTG)
c - The component to add the KeyListener to.targetTG - The target transform group.| Method Detail |
|---|
public void initialize()
initialize in class Behaviorpublic void processStimulus(java.util.Enumeration criteria)
processStimulus in class Behaviorcriteria - an enumeration of triggered wakeup criteria for this
behaviorpublic void addListener(java.awt.Component c)
c - The component to add the KeyListener to.
java.lang.IllegalStateException - if the behavior was not created
as a listenerpublic void keyPressed(java.awt.event.KeyEvent evt)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped in interface java.awt.event.KeyListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||