|
healpix.plot3d.canvas3d
Class ToolTipBehavior
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
healpix.plot3d.canvas3d.ToolTipBehavior
public class ToolTipBehavior - extends PickMouseBehavior
A behavior similar to SelectionBehavior, except you don't have to
double-click and the resulting info is presented in a tool-tip, not the
console.Using swings default (ToolTipManager) initialDelay constant.
- Version:
- $Id: ToolTipBehavior.java,v 1.1.2.4 2010/02/22 14:55:50 healpix Exp $
- Author:
- ejoliet
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 |
Methods inherited from class javax.media.j3d.Behavior |
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences |
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 |
ToolTipBehavior
public ToolTipBehavior(Canvas3D canvas,
BranchGroup root,
Bounds bounds)
- Constructor.
- Parameters:
canvas - the canvas on which the behaviour is setroot - the root element of the scenebounds - the bounds beahviour
initialize
public void initialize()
- Overrides:
initialize in class PickMouseBehavior
- See Also:
http://archives.java.sun.com/cgi-bin/wa?A2=ind0201&L=java3d-interest&F=&S=&P=4228
setCanShowToolTips
public void setCanShowToolTips(boolean val)
- Set whether the tooltip is shown or not.
- Parameters:
val -
getCanShowToolTips
public boolean getCanShowToolTips()
- Get if the tooltip behaviour is on or off
- Returns:
- tooltip behaviour state
processStimulus
public void processStimulus(Enumeration criteria)
- Process the mouse events.
- Overrides:
processStimulus in class PickMouseBehavior
- Parameters:
criteria -
updateScene
public void updateScene(int xpos,
int ypos)
- Specified by:
updateScene in class PickMouseBehavior
|
|