public class ColorCubeState extends Shape3DState
control, node, nodeClassName, symbol
Constructor and Description |
---|
ColorCubeState(SymbolTableData symbol,
Controller control) |
Modifier and Type | Method and Description |
---|---|
protected SceneGraphObject |
createNode()
Create a new J3D node for this object.
|
SceneGraphObject |
createNode(java.lang.Class j3dClass)
Create a new J3D node from the supplied class using the parameterless constructor
For J3D 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 J3D classes
|
protected boolean |
processChildren()
Returns true if the groups children should be saved.
|
void |
readConstructorParams(java.io.DataInput in)
Read the parameters required for the constructor of the J3D object
|
void |
writeConstructorParams(java.io.DataOutput out)
Write the parameters required for the constructor of the J3D object
|
addSubReference, buildGraph, readObject, writeObject
cleanup, createNode, createNode, createState, getNode, getNodeID, getSymbol, readString, writeString
public ColorCubeState(SymbolTableData symbol, Controller control)
public void writeConstructorParams(java.io.DataOutput out) throws java.io.IOException
SceneGraphObjectState
writeConstructorParams
in class SceneGraphObjectState
java.io.IOException
public void readConstructorParams(java.io.DataInput in) throws java.io.IOException
SceneGraphObjectState
readConstructorParams
in class SceneGraphObjectState
java.io.IOException
protected boolean processChildren()
public SceneGraphObject createNode(java.lang.Class j3dClass)
SceneGraphObjectState
createNode
in class SceneGraphObjectState
protected SceneGraphObject createNode()
SceneGraphObjectState
createNode
in class Shape3DState