frontend.java3d
Class SpherePointGraph

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.BranchGroup
                  extended by frontend.java3d.SphereGraphBase
                      extended by frontend.java3d.SpherePointGraph
All Implemented Interfaces:
java.util.Observer

public class SpherePointGraph
extends SphereGraphBase
implements java.util.Observer

SpheriosityPointGraph can be used to plot a point on the sphere.


Field Summary
 
Fields inherited from class javax.media.j3d.BranchGroup
ALLOW_DETACH
 
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
SpherePointGraph(SpherePointModel thePointModel, SphereModel theSphereMod)
          SpherePointGraph constructor
 
Method Summary
 java.lang.String getLabel()
          getLabel will return the label of this point
 SpherePointModel getPointModel()
          getPointModel returns the point model we are representing
 SphereGraphicalPoint getSpheriosityPoint()
          getSpheriosityPoint will return the point that this SpheriosityPointGraph is representing
 void setLabelState(boolean newState)
          setLabelState can be used to determine whether to displays labels or not
 void update(java.util.Observable arg0, java.lang.Object arg1)
          Move this point to a new location...
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAll, pickAllSorted, pickAllSorted, pickAny, pickAny, pickClosest, pickClosest
 
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

SpherePointGraph

public SpherePointGraph(SpherePointModel thePointModel,
                        SphereModel theSphereMod)
SpherePointGraph constructor

Parameters:
thePointModel - the point model we are representing
theSphereMod - the sphere model the point is on
Method Detail

getSpheriosityPoint

public SphereGraphicalPoint getSpheriosityPoint()
getSpheriosityPoint will return the point that this SpheriosityPointGraph is representing

Returns:
The SphereGraphicalPoint

getLabel

public java.lang.String getLabel()
getLabel will return the label of this point

Returns:
The label for this SpheriosityPoint

getPointModel

public SpherePointModel getPointModel()
getPointModel returns the point model we are representing

Returns:
the SpherePointModel we are representing

setLabelState

public void setLabelState(boolean newState)
setLabelState can be used to determine whether to displays labels or not

Parameters:
newState - if set to true the label will be displayed and if set to false the label will be hidden

update

public void update(java.util.Observable arg0,
                   java.lang.Object arg1)
Move this point to a new location... hopefully

Specified by:
update in interface java.util.Observer