backend.spheremodel
Class SpherePointModel

java.lang.Object
  extended by java.util.Observable
      extended by backend.spheremodel.SphereBasicObject
          extended by backend.spheremodel.SpherePointModel
Direct Known Subclasses:
SphereParaPointModel, SpherePointCircModel, SpherePointIntrModel, SpherePointLineModel, SphereRotatedPointModel

public class SpherePointModel
extends SphereBasicObject

SpherePointModel is a backend model of a point on a sphere


Constructor Summary
SpherePointModel(float x, float y, float z)
          SpherePontModel constructor
SpherePointModel(float x, float y, float z, java.lang.String theLabel)
          SpherePointModel file loading constructor
SpherePointModel(javax.vecmath.Point3f thePoint)
          SpherePointModel constructor
 
Method Summary
 boolean equals(java.lang.Object checkMe)
           
 int getID()
          getID will return the unique indentifier for this SpherePointModel
 java.lang.String getLabel()
          getLabel returns the label for this point
 javax.vecmath.Point3f getPoint()
          Returns the point that this model represents
 void setLabel(java.lang.String newLabel)
          setLabel() will change the label that is currently on this point
 void setLocation(javax.vecmath.Point3f newLoc)
          setLocation will change the location of this point
 
Methods inherited from class backend.spheremodel.SphereBasicObject
addChild, getChild, getChildCount, getSelected, isBeingRemoved, isHidden, notifyFamily, removeChild, setBeingRemoved, setHidden, setSelected
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpherePointModel

public SpherePointModel(javax.vecmath.Point3f thePoint)
SpherePointModel constructor

Parameters:
thePoint - is the point to initalize the SpherePointModel to

SpherePointModel

public SpherePointModel(float x,
                        float y,
                        float z)
SpherePontModel constructor

Parameters:
x - - the x coordinate for the model
y - - the y coordinate for the model
z - - the z coordinate for the model

SpherePointModel

public SpherePointModel(float x,
                        float y,
                        float z,
                        java.lang.String theLabel)
SpherePointModel file loading constructor

Parameters:
x - - x coordinate
y - - y coordinate
z - - z coordinate
theLabel - - a label for this point
Method Detail

getPoint

public javax.vecmath.Point3f getPoint()
Returns the point that this model represents

Returns:
the point for this model

getLabel

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

Returns:
the label for this point

setLabel

public void setLabel(java.lang.String newLabel)
setLabel() will change the label that is currently on this point


equals

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

setLocation

public void setLocation(javax.vecmath.Point3f newLoc)
setLocation will change the location of this point

Parameters:
newLoc - - New location for the point

getID

public int getID()
getID will return the unique indentifier for this SpherePointModel

Returns:
the unique id for this point