|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.SceneGraphNode
public class SceneGraphNode
Base class for scene graph member nodes. Common features of all scene graph nodes are an optional name and a read-only flag.
This class handles the thread-safe access to the state using a collection of protected and private methods for locked read and write access.
Many subclasses support specific listeners which notify interested parties of any change in state of the node. See the specific subclasses for details.
Constructor Summary | |
---|---|
SceneGraphNode(String name)
|
Method Summary | |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor. |
String |
getName()
|
Object |
getOwner()
|
static boolean |
getThreadSafe()
|
boolean |
isReadOnly()
Returns the readOnly flag |
void |
setName(String string)
|
void |
setOwner(Object owner)
|
void |
setReadOnly(boolean newReadOnlyState)
Sets the readOnly flag |
static void |
setThreadSafe(boolean b)
Deprecated. |
String |
toString()
Return a string representation of the current state. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SceneGraphNode(String name)
Method Detail |
---|
public boolean isReadOnly()
public void setReadOnly(boolean newReadOnlyState)
newReadOnlyState
- the desired readOnly flag valuepublic String getName()
public void setName(String string)
public Object getOwner()
public void setOwner(Object owner)
public void accept(SceneGraphVisitor v)
a
- visitor SceneGraphVisitor
public String toString()
toString
in class Object
public static void setThreadSafe(boolean b)
b
- public static boolean getThreadSafe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |