public class BoxState extends PrimitiveState
| Modifier and Type | Field and Description |
|---|---|
private int |
backAppearance |
private int |
bottomAppearance |
private int |
frontAppearance |
private int |
leftAppearance |
private int |
rightAppearance |
private int |
topAppearance |
private float |
xdim |
private float |
ydim |
private float |
zdim |
primflagsgroupChildrencontrol, node, nodeClassName, symbol| 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().
|
protected SceneGraphObject |
createNode()
Create a new Java3D node for this object.
|
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.
|
processChildrencleanupcreateNode, createNode, createState, getNode, getNodeID, getSymbol, readString, writeStringprivate float xdim
private float ydim
private float zdim
private int frontAppearance
private int backAppearance
private int topAppearance
private int bottomAppearance
private int leftAppearance
private int rightAppearance
public 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)
SceneGraphObjectStatecreateNode in class SceneGraphObjectStateprotected SceneGraphObject createNode()
SceneGraphObjectStatecreateNode in class GroupStateCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.