com.sun.j3d.utils.scenegraph.io.state.com.sun.j3d.utils.geometry
Class Text2DState

java.lang.Object
  extended by com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectState
      extended by com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.NodeState
          extended by com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.LeafState
              extended by com.sun.j3d.utils.scenegraph.io.state.com.sun.j3d.utils.geometry.Text2DState

public class Text2DState
extends LeafState


Field Summary
private  Color3f color
           
private  java.lang.String fontName
           
private  int fontSize
           
private  int fontStyle
           
private  java.lang.String text
           
 
Fields inherited from class com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectState
control, node, nodeClassName, symbol
 
Constructor Summary
Text2DState(SymbolTableData symbol, Controller control)
           
 
Method Summary
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.
 
Methods inherited from class com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectState
buildGraph, cleanup, createNode, createNode, createState, getNode, getNodeID, getSymbol, readString, writeString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

private java.lang.String text

color

private Color3f color

fontName

private java.lang.String fontName

fontSize

private int fontSize

fontStyle

private int fontStyle
Constructor Detail

Text2DState

public Text2DState(SymbolTableData symbol,
                   Controller control)
Method Detail

writeObject

public void writeObject(java.io.DataOutput out)
                 throws java.io.IOException
Description copied from class: SceneGraphObjectState
DO NOT call symbolTable.addReference in writeObject as this (may) result in a concurrentModificationException. All references should be created in the constructor

Overrides:
writeObject in class NodeState
Throws:
java.io.IOException

readObject

public void readObject(java.io.DataInput in)
                throws java.io.IOException
Overrides:
readObject in class NodeState
Throws:
java.io.IOException

writeConstructorParams

public void writeConstructorParams(java.io.DataOutput out)
                            throws java.io.IOException
Description copied from class: SceneGraphObjectState
Write the parameters required for the constructor of the Java3D object

Overrides:
writeConstructorParams in class SceneGraphObjectState
Throws:
java.io.IOException

readConstructorParams

public void readConstructorParams(java.io.DataInput in)
                           throws java.io.IOException
Description copied from class: SceneGraphObjectState
Read the parameters required for the constructor of the Java3D object

Overrides:
readConstructorParams in class SceneGraphObjectState
Throws:
java.io.IOException

createNode

public SceneGraphObject createNode(java.lang.Class j3dClass)
Description copied from class: SceneGraphObjectState
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

Overrides:
createNode in class SceneGraphObjectState

createNode

protected SceneGraphObject createNode()
Description copied from class: SceneGraphObjectState
Create a new Java3D node for this object. This method is ONLY used when the Java3D Class type matches the State type, ie this does NOT handle subclasses of Java3D. For Java3D subclasses use createNode( Class state) This method MUST be implemented by all State objects but is not abstract to allow for external subclassing

Overrides:
createNode in class SceneGraphObjectState


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.