public class SceneGraphNode extends Object
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 and Description |
---|
SceneGraphNode(String name) |
Modifier and Type | Method and Description |
---|---|
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)
Allow thread-unsafe access to all scene graph nodes, to optimize performance
in case there are no threading issues.
|
String |
toString()
Return a string representation of the current state.
|
public SceneGraphNode(String name)
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()
public static void setThreadSafe(boolean b)
b
- public static boolean getThreadSafe()