edu.uci.ics.jung.visualization3d
Class PickVertexBehavior<V,E>

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Behavior
                  extended by com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
                      extended by com.sun.j3d.utils.picking.behaviors.PickTranslateBehavior
                          extended by edu.uci.ics.jung.visualization3d.PickVertexBehavior<V,E>
All Implemented Interfaces:
com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback, ChangeEventSupport

public class PickVertexBehavior<V,E>
extends com.sun.j3d.utils.picking.behaviors.PickTranslateBehavior
implements ChangeEventSupport

Author:
Tom Nelson - tomnelson@dev.java.net

Field Summary
 
Fields inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
buttonPress, conditions, currGrp, debug, mevent, pickCanvas, wakeupCondition
 
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 interface com.sun.j3d.utils.behaviors.mouse.MouseBehaviorCallback
ROTATE, TRANSLATE, ZOOM
 
Constructor Summary
PickVertexBehavior(javax.media.j3d.BranchGroup root, javax.media.j3d.Canvas3D canvas, javax.media.j3d.Bounds bounds, PickedState<V> pickedState)
           
 
Method Summary
 void addChangeListener(ChangeListener l)
           
 void fireStateChanged()
           
 ChangeListener[] getChangeListeners()
          Returns an array of all the ChangeListeners added with addChangeListener().
 void removeChangeListener(ChangeListener l)
          Removes a ChangeListener.
 void updateScene(int xpos, int ypos)
           
 
Methods inherited from class com.sun.j3d.utils.picking.behaviors.PickTranslateBehavior
setupCallback, transformChanged
 
Methods inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
getMode, getTolerance, initialize, processStimulus, setMode, setTolerance
 
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
 

Constructor Detail

PickVertexBehavior

public PickVertexBehavior(javax.media.j3d.BranchGroup root,
                          javax.media.j3d.Canvas3D canvas,
                          javax.media.j3d.Bounds bounds,
                          PickedState<V> pickedState)
Method Detail

updateScene

public void updateScene(int xpos,
                        int ypos)
Overrides:
updateScene in class com.sun.j3d.utils.picking.behaviors.PickTranslateBehavior

addChangeListener

public void addChangeListener(ChangeListener l)
Specified by:
addChangeListener in interface ChangeEventSupport

fireStateChanged

public void fireStateChanged()
Specified by:
fireStateChanged in interface ChangeEventSupport

getChangeListeners

public ChangeListener[] getChangeListeners()
Description copied from interface: ChangeEventSupport
Returns an array of all the ChangeListeners added with addChangeListener().

Specified by:
getChangeListeners in interface ChangeEventSupport
Returns:
all of the ChangeListeners added or an empty array if no listeners have been added

removeChangeListener

public void removeChangeListener(ChangeListener l)
Description copied from interface: ChangeEventSupport
Removes a ChangeListener.

Specified by:
removeChangeListener in interface ChangeEventSupport
Parameters:
l - the listener to be removed


Copyright © 2009. All Rights Reserved.