|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
de.fhg.igd.earth.view.behavior.VPMouseBehavior
Abstract class which implements much of the event tracking and state updating
| Field Summary | |
(package private) javax.media.j3d.WakeupCriterion |
bpDrag
|
(package private) javax.media.j3d.WakeupCriterion |
bpPress
|
(package private) javax.media.j3d.WakeupCriterion |
bpRelease
|
private static boolean |
DEBUG
|
(package private) javax.media.j3d.WakeupCriterion |
ef
|
protected boolean |
motion
Boolean for whether the mouse is in motion |
protected javax.media.j3d.WakeupOr |
mouseCriterion
The Or of the different criterion for the behavior to wakeup |
protected javax.media.j3d.WakeupCriterion[] |
mouseEvents
The different criterion for the behavior to wakeup |
(package private) LinkedList |
mouseq
|
protected javax.media.j3d.Transform3D |
targetTransform
The target Transform3D for this behavior |
| Fields inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior |
homeTransform, targetTG, vp |
| Fields inherited from class javax.media.j3d.Node |
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING |
| Fields inherited from class javax.media.j3d.SceneGraphObject |
|
| Constructor Summary | |
VPMouseBehavior(javax.media.j3d.Canvas3D c)
Constructs a new VPMouseBehavior |
|
| Method Summary | |
void |
initialize()
Initializes the behavior. |
(package private) abstract void |
integrateTransforms()
Called once per frame (if the view is moving) to calculate the new view platform transform |
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
(package private) void |
processAWTEvents(AWTEvent[] events)
|
(package private) abstract void |
processMouseEvent(MouseEvent evt)
Process the mouse events, this is called every time an event arrives |
void |
processStimulus(Enumeration en)
Process a stimulus meant for this behavior. |
| Methods inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior |
getHomeTransform, getViewingPlatform, goHome, setHomeTransform, setViewingPlatform |
| Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn |
| Methods inherited from class javax.media.j3d.Node |
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable |
| Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final boolean DEBUG
protected javax.media.j3d.WakeupCriterion[] mouseEvents
protected javax.media.j3d.WakeupOr mouseCriterion
javax.media.j3d.WakeupCriterion bpDrag
javax.media.j3d.WakeupCriterion bpPress
javax.media.j3d.WakeupCriterion bpRelease
javax.media.j3d.WakeupCriterion ef
protected javax.media.j3d.Transform3D targetTransform
protected boolean motion
LinkedList mouseq
| Constructor Detail |
public VPMouseBehavior(javax.media.j3d.Canvas3D c)
c - The Canvas3D to add the behavior to| Method Detail |
public void initialize()
public void processStimulus(Enumeration en)
void processAWTEvents(AWTEvent[] events)
abstract void processMouseEvent(MouseEvent evt)
abstract void integrateTransforms()
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||