|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.physics.solids.AtlasObject
public abstract class AtlasObject
Abstract object that everything that resides in an AtlasModel must extend.
There are two attributes of an AtlasObject that are important, the id and the type of the object. These are used to store and retrieve the object from an AtlasModel.
| Constructor Summary | |
|---|---|
AtlasObject()
|
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object rhs)
Compares two objects for sorting. |
boolean |
equals(java.lang.Object rhs)
Checks for equality. |
java.lang.String |
getId()
Returns the id of the object. |
AtlasModel |
getParentModel()
Returns the parent model, or null if this is a standalone object. |
abstract java.lang.String |
getType()
Returns the type of the object. |
org.jdom.Element |
loadJDOMElement()
Method to load e JDOM element up with information. |
void |
populateGeometry(javax.media.j3d.BranchGroup geometryRoot)
Adds geometry contributions to the scene graph. |
void |
setId(java.lang.String id)
Sets the identifier of the object. |
void |
setParentModel(AtlasModel parent)
Sets the model that owns this object. |
java.lang.String |
toString()
Convenience method to dump information about the object. |
static AtlasObject |
unloadJDOMElement(AtlasModel parent,
org.jdom.Element e)
Method to marshall AtlasObjects from the XML. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AtlasObject()
| Method Detail |
|---|
public void setId(java.lang.String id)
public java.lang.String getId()
public abstract java.lang.String getType()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setParentModel(AtlasModel parent)
public AtlasModel getParentModel()
public int compareTo(java.lang.Object rhs)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object rhs)
equals in class java.lang.Objectpublic org.jdom.Element loadJDOMElement()
public static AtlasObject unloadJDOMElement(AtlasModel parent,
org.jdom.Element e)
public void populateGeometry(javax.media.j3d.BranchGroup geometryRoot)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||