|
Aviatrix3D 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
The SceneGraphObject is a common superclass for all scene graph objects.
| Field Summary | |
protected boolean |
alive
Current live state of the object |
protected static java.lang.String |
LISTENER_SET_NOT_LIVE_MESSAGE
|
protected NodeUpdateHandler |
updateHandler
The scene this node belongs to |
protected static java.lang.String |
WRITE_TIMING_MSG
Message when the user attempts to write a value to the node at the wrong point in the update cycle. |
| Constructor Summary | |
SceneGraphObject()
|
|
| Method Summary | |
protected void |
checkForCyclicChild(SceneGraphObject parent)
Check to see if this node is the same reference as the passed node that is a parent of this node. |
protected void |
checkForCyclicParent(SceneGraphObject child)
Check to see if this node is the same reference as the passed node. |
void |
dataChanged(NodeUpdateListener l)
Notify the node that you have updates to the node that will not alter its bounds. |
java.lang.Object |
getUserData()
Get the currently set user data object. |
boolean |
isLive()
Check to see whether this object is alive or not. |
protected void |
setLive(boolean state)
Notification that this object is live now. |
protected void |
setUpdateHandler(NodeUpdateHandler handler)
Set the scenegraph update handler for this node. |
void |
setUserData(java.lang.Object data)
Set the user data to the new object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String WRITE_TIMING_MSG
protected static final java.lang.String LISTENER_SET_NOT_LIVE_MESSAGE
protected NodeUpdateHandler updateHandler
protected boolean alive
| Constructor Detail |
public SceneGraphObject()
| Method Detail |
public void setUserData(java.lang.Object data)
data - The new piece of data to setpublic java.lang.Object getUserData()
public boolean isLive()
protected void setLive(boolean state)
state - true if this should be marked as live now
protected void checkForCyclicParent(SceneGraphObject child)
throws CyclicSceneGraphStructureException
child - The reference to check against this class
CyclicSceneGraphStructureException - Equal parent and child
protected void checkForCyclicChild(SceneGraphObject parent)
throws CyclicSceneGraphStructureException
parent - The reference to check against this class
CyclicSceneGraphStructureException - Equal parent and childprotected void setUpdateHandler(NodeUpdateHandler handler)
handler - The instance to use as a handler
public void dataChanged(NodeUpdateListener l)
throws InvalidListenerSetTimingException
l - The change requestor
InvalidListenerSetTimingException - If called when the node is not live or
if called during one of the bounds/data changed callbacks
|
Aviatrix3D 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||