frontend.java3d
Class SpherePointLabel

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Group
              extended by javax.media.j3d.TransformGroup
                  extended by frontend.java3d.SpherePointLabel
All Implemented Interfaces:
java.util.Observer

public class SpherePointLabel
extends javax.media.j3d.TransformGroup
implements java.util.Observer

SpheriosityPointLabel represents the label for a SpheriosityPoint


Field Summary
 
Fields inherited from class javax.media.j3d.TransformGroup
ALLOW_TRANSFORM_READ, ALLOW_TRANSFORM_WRITE
 
Fields inherited from class javax.media.j3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
 
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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
SpherePointLabel(SpherePointModel thePointModel, SphereModel theSphere)
          SpheriosityPointLabel is the label for this point
 
Method Summary
 java.lang.String getLabel()
          getLabel returns the label associated with this point label
static void setDefaultDisplayState(boolean newState)
          setDefaultDisplayState will set the default state new labels use to determine whether to show their label or not
 void setLabelState(boolean newState)
          setLabelState can be used to change whether labels are displayed or not.
 void update(java.util.Observable arg0, java.lang.Object arg1)
           
 
Methods inherited from class javax.media.j3d.TransformGroup
cloneNode, getTransform, setTransform
 
Methods inherited from class javax.media.j3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
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.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpherePointLabel

public SpherePointLabel(SpherePointModel thePointModel,
                        SphereModel theSphere)
SpheriosityPointLabel is the label for this point

Parameters:
thePointModel - the point that our label will go with
theSphere - the radius of the sphere
Method Detail

getLabel

public java.lang.String getLabel()
getLabel returns the label associated with this point label

Returns:
The point label

setLabelState

public void setLabelState(boolean newState)
setLabelState can be used to change whether labels are displayed or not.

Parameters:
newState - set to true to display the label or false to hide it

setDefaultDisplayState

public static void setDefaultDisplayState(boolean newState)
setDefaultDisplayState will set the default state new labels use to determine whether to show their label or not

Parameters:
newState - if true labels will be shown if false labels will be hidden

update

public void update(java.util.Observable arg0,
                   java.lang.Object arg1)
Specified by:
update in interface java.util.Observer