public class BoxState extends PrimitiveState
| Constructor and Description |
|---|
BoxState(SymbolTableData symbol,
Controller control) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildGraph()
Subclasses should processes their own buildGraph requirements BEFORE
calling super.buildGraph().
|
SceneGraphObject |
createNode(java.lang.Class j3dClass)
Create a new Java3D node from the supplied class using the parameterless constructor
For Java3D nodes which do not have a default constructor you must
overload this method and create the object using createNode( className, parameters )
This will correctly handle subclasses of Java3D classes
|
void |
readConstructorParams(java.io.DataInput in)
Read the parameters required for the constructor of the Java3D object
|
void |
readObject(java.io.DataInput in) |
void |
writeConstructorParams(java.io.DataOutput out)
Write the parameters required for the constructor of the Java3D object
|
void |
writeObject(java.io.DataOutput out)
DO NOT call symbolTable.addReference in writeObject as this (may)
result in a concurrentModificationException.
|
cleanupgetNode, getNodeID, getSymbolpublic BoxState(SymbolTableData symbol, Controller control)
public void writeObject(java.io.DataOutput out)
throws java.io.IOException
SceneGraphObjectStatewriteObject in class GroupStatejava.io.IOExceptionpublic void readObject(java.io.DataInput in)
throws java.io.IOException
readObject in class GroupStatejava.io.IOExceptionpublic void writeConstructorParams(java.io.DataOutput out)
throws java.io.IOException
SceneGraphObjectStatewriteConstructorParams in class PrimitiveStatejava.io.IOExceptionpublic void readConstructorParams(java.io.DataInput in)
throws java.io.IOException
SceneGraphObjectStatereadConstructorParams in class PrimitiveStatejava.io.IOExceptionpublic void buildGraph()
SceneGraphObjectStatebuildGraph in class PrimitiveStatepublic SceneGraphObject createNode(java.lang.Class j3dClass)
SceneGraphObjectState