NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


healpix.plot3d.canvas3d
Class ToolTipBehavior

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 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

Field Summary
 
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
 
Constructor Summary
ToolTipBehavior(Canvas3D canvas, BranchGroup root, Bounds bounds)
          Constructor.
 
Method Summary
 boolean getCanShowToolTips()
          Get if the tooltip behaviour is on or off
 void initialize()
           
 void processStimulus(Enumeration criteria)
          Process the mouse events.
 void setCanShowToolTips(boolean val)
          Set whether the tooltip is shown or not.
 void updateScene(int xpos, int ypos)
           
 
Methods inherited from class com.sun.j3d.utils.picking.behaviors.PickMouseBehavior
getMode, getTolerance, setMode, setTolerance
 
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
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTipBehavior

public ToolTipBehavior(Canvas3D canvas,
                       BranchGroup root,
                       Bounds bounds)
Constructor.

Parameters:
canvas - the canvas on which the behaviour is set
root - the root element of the scene
bounds - the bounds beahviour
Method Detail

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

"Built from revision exported"

Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650