frontend.java3d
Class SphereGraphicalLineBase

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

public class SphereGraphicalLineBase
extends SphereGraphicalBase
implements java.util.Observer

SphereGraphicLineBase is a class for drawing all SphereLineModels


Field Summary
 
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
SphereGraphicalLineBase(SphereMultiPointBase theLineModel)
          The constructor
 
Method Summary
 boolean equals(java.lang.Object myLine)
           
 void finalInit()
          finialInit will finish the initalization of the line by adding color and setting it to be pickable
 SphereBasicObject getModel()
           
 SphereMultiPointBase getPointBase()
          getLineModel returns the line model for this SpheriosityLineBase
 void setSelected(boolean selectMe)
          setSelected will make the line selected or not
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class frontend.java3d.SphereGraphicalBase
getHighlighted, getNode, setHighlighted
 
Methods inherited from class javax.media.j3d.Group
addChild, cloneNode, 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
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SphereGraphicalLineBase

public SphereGraphicalLineBase(SphereMultiPointBase theLineModel)
The constructor

Parameters:
theLineModel - is the SphereLineModel to represent
theSphereMod - is the SphereModel to represent
Method Detail

finalInit

public void finalInit()
finialInit will finish the initalization of the line by adding color and setting it to be pickable


setSelected

public void setSelected(boolean selectMe)
setSelected will make the line selected or not

Parameters:
selectMe - if passed as true will select the line and if passed as false the line will be deselected

equals

public boolean equals(java.lang.Object myLine)
Overrides:
equals in class java.lang.Object

update

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

getPointBase

public SphereMultiPointBase getPointBase()
getLineModel returns the line model for this SpheriosityLineBase

Returns:
the SphereLineModel that is being represented

getModel

public SphereBasicObject getModel()
Specified by:
getModel in class SphereGraphicalBase