javax.media.j3d
Class J3dNodeTable
java.lang.Object
javax.media.j3d.J3dNodeTable
class J3dNodeTable
- extends java.lang.Object
The J3dNodeTable object provides utilities for the save/load
methods in the Java3d nodes. Specifically, it holds an enumerated
list of the Java3D node types and their respective Class names.
It keeps these lists in a Hashtable and an array and allows
other classes to get an enumerated value associated with an Object
type or an instance of an Object associated with an enumerated value.
Constructor Summary |
J3dNodeTable()
Constructs this Object, which initializes the array and Hashtable |
Method Summary |
(package private) int |
getNodeValue(java.lang.Object object)
Returns the enumerated value associated with an Object. |
(package private) java.lang.Object |
getObject(int nodeValue)
Returns new instance of an object with the Class name
associated with the given enumerated value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeTable
java.util.Hashtable nodeTable
nodeArray
java.lang.String[] nodeArray
MAX_NUM_NODES
static final int MAX_NUM_NODES
- See Also:
- Constant Field Values
NOTHING
static final int NOTHING
- See Also:
- Constant Field Values
GROUP
static final int GROUP
- See Also:
- Constant Field Values
TRANSFORM_GROUP
static final int TRANSFORM_GROUP
- See Also:
- Constant Field Values
SWITCH_GROUP
static final int SWITCH_GROUP
- See Also:
- Constant Field Values
ORDERED_GROUP
static final int ORDERED_GROUP
- See Also:
- Constant Field Values
BRANCH_GROUP
static final int BRANCH_GROUP
- See Also:
- Constant Field Values
ENDGROUP
static final int ENDGROUP
- See Also:
- Constant Field Values
SHAPE3D
static final int SHAPE3D
- See Also:
- Constant Field Values
APPEARANCE
static final int APPEARANCE
- See Also:
- Constant Field Values
MATERIAL
static final int MATERIAL
- See Also:
- Constant Field Values
TEXTURE
static final int TEXTURE
- See Also:
- Constant Field Values
TEX_COORD_GENERATION
static final int TEX_COORD_GENERATION
- See Also:
- Constant Field Values
TEXTURE_ATTRIBUTES
static final int TEXTURE_ATTRIBUTES
- See Also:
- Constant Field Values
COLORING_ATTRIBUTES
static final int COLORING_ATTRIBUTES
- See Also:
- Constant Field Values
TRANSPARENCY_ATTRIBUTES
static final int TRANSPARENCY_ATTRIBUTES
- See Also:
- Constant Field Values
RENDERING_ATTRIBUTES
static final int RENDERING_ATTRIBUTES
- See Also:
- Constant Field Values
POLYGON_ATTRIBUTES
static final int POLYGON_ATTRIBUTES
- See Also:
- Constant Field Values
LINE_ATTRIBUTES
static final int LINE_ATTRIBUTES
- See Also:
- Constant Field Values
POINT_ATTRIBUTES
static final int POINT_ATTRIBUTES
- See Also:
- Constant Field Values
TEXTURE_2D
static final int TEXTURE_2D
- See Also:
- Constant Field Values
TEXTURE_3D
static final int TEXTURE_3D
- See Also:
- Constant Field Values
IMAGE_COMPONENT
static final int IMAGE_COMPONENT
- See Also:
- Constant Field Values
IMAGE_COMPONENT_2D
static final int IMAGE_COMPONENT_2D
- See Also:
- Constant Field Values
IMAGE_COMPONENT_3D
static final int IMAGE_COMPONENT_3D
- See Also:
- Constant Field Values
ENDAPPEARANCE
static final int ENDAPPEARANCE
- See Also:
- Constant Field Values
GEOMETRY
static final int GEOMETRY
- See Also:
- Constant Field Values
COMPRESSED_GEOMETRY
static final int COMPRESSED_GEOMETRY
- See Also:
- Constant Field Values
GEOMETRY_ARRAY
static final int GEOMETRY_ARRAY
- See Also:
- Constant Field Values
GEOMETRY_STRIP_ARRAY
static final int GEOMETRY_STRIP_ARRAY
- See Also:
- Constant Field Values
INDEXED_GEOMETRY_ARRAY
static final int INDEXED_GEOMETRY_ARRAY
- See Also:
- Constant Field Values
INDEXED_GEOMETRY_STRIP_ARRAY
static final int INDEXED_GEOMETRY_STRIP_ARRAY
- See Also:
- Constant Field Values
INDEXED_LINE_ARRAY
static final int INDEXED_LINE_ARRAY
- See Also:
- Constant Field Values
INDEXED_LINE_STRIP_ARRAY
static final int INDEXED_LINE_STRIP_ARRAY
- See Also:
- Constant Field Values
INDEXED_POINT_ARRAY
static final int INDEXED_POINT_ARRAY
- See Also:
- Constant Field Values
INDEXED_QUAD_ARRAY
static final int INDEXED_QUAD_ARRAY
- See Also:
- Constant Field Values
INDEXED_TRIANGLE_ARRAY
static final int INDEXED_TRIANGLE_ARRAY
- See Also:
- Constant Field Values
INDEXED_TRIANGLE_FAN_ARRAY
static final int INDEXED_TRIANGLE_FAN_ARRAY
- See Also:
- Constant Field Values
INDEXED_TRIANGLE_STRIP_ARRAY
static final int INDEXED_TRIANGLE_STRIP_ARRAY
- See Also:
- Constant Field Values
LINE_ARRAY
static final int LINE_ARRAY
- See Also:
- Constant Field Values
LINE_STRIP_ARRAY
static final int LINE_STRIP_ARRAY
- See Also:
- Constant Field Values
POINT_ARRAY
static final int POINT_ARRAY
- See Also:
- Constant Field Values
QUAD_ARRAY
static final int QUAD_ARRAY
- See Also:
- Constant Field Values
TRIANGLE_ARRAY
static final int TRIANGLE_ARRAY
- See Also:
- Constant Field Values
TRIANGLE_FAN_ARRAY
static final int TRIANGLE_FAN_ARRAY
- See Also:
- Constant Field Values
TRIANGLE_STRIP_ARRAY
static final int TRIANGLE_STRIP_ARRAY
- See Also:
- Constant Field Values
BACKGROUND_SOUND
static final int BACKGROUND_SOUND
- See Also:
- Constant Field Values
POINT_SOUND
static final int POINT_SOUND
- See Also:
- Constant Field Values
CONE_SOUND
static final int CONE_SOUND
- See Also:
- Constant Field Values
MEDIA_CONTAINER
static final int MEDIA_CONTAINER
- See Also:
- Constant Field Values
ROTATION_INTERPOLATOR
static final int ROTATION_INTERPOLATOR
- See Also:
- Constant Field Values
ROTPOSSCALEPATH_INTERPOLATOR
static final int ROTPOSSCALEPATH_INTERPOLATOR
- See Also:
- Constant Field Values
ROTATIONPATH_INTERPOLATOR
static final int ROTATIONPATH_INTERPOLATOR
- See Also:
- Constant Field Values
POSITIONPATH_INTERPOLATOR
static final int POSITIONPATH_INTERPOLATOR
- See Also:
- Constant Field Values
ROTPOSPATH_INTERPOLATOR
static final int ROTPOSPATH_INTERPOLATOR
- See Also:
- Constant Field Values
POSITION_INTERPOLATOR
static final int POSITION_INTERPOLATOR
- See Also:
- Constant Field Values
SWITCHVALUE_INTERPOLATOR
static final int SWITCHVALUE_INTERPOLATOR
- See Also:
- Constant Field Values
COLOR_INTERPOLATOR
static final int COLOR_INTERPOLATOR
- See Also:
- Constant Field Values
SCALE_INTERPOLATOR
static final int SCALE_INTERPOLATOR
- See Also:
- Constant Field Values
SOUND_PLAYER
static final int SOUND_PLAYER
- See Also:
- Constant Field Values
SOUND_FADER
static final int SOUND_FADER
- See Also:
- Constant Field Values
BOUNDS
static final int BOUNDS
- See Also:
- Constant Field Values
BOUNDING_SPHERE
static final int BOUNDING_SPHERE
- See Also:
- Constant Field Values
BOUNDING_BOX
static final int BOUNDING_BOX
- See Also:
- Constant Field Values
BOUNDING_POLYTOPE
static final int BOUNDING_POLYTOPE
- See Also:
- Constant Field Values
TRANSFORM3D
static final int TRANSFORM3D
- See Also:
- Constant Field Values
BACKGROUND
static final int BACKGROUND
- See Also:
- Constant Field Values
LIGHT
static final int LIGHT
- See Also:
- Constant Field Values
POINT_LIGHT
static final int POINT_LIGHT
- See Also:
- Constant Field Values
SPOT_LIGHT
static final int SPOT_LIGHT
- See Also:
- Constant Field Values
DIRECTIONAL_LIGHT
static final int DIRECTIONAL_LIGHT
- See Also:
- Constant Field Values
AMBIENT_LIGHT
static final int AMBIENT_LIGHT
- See Also:
- Constant Field Values
J3dNodeTable
J3dNodeTable()
- Constructs this Object, which initializes the array and Hashtable
getNodeValue
int getNodeValue(java.lang.Object object)
- Returns the enumerated value associated with an Object. This
method retrieves the base class name (with no package name and
with no "Retained" portion (if it's part of the Object's name);
we're just looking for the base Java3d node type here.
getObject
java.lang.Object getObject(int nodeValue)
- Returns new instance of an object with the Class name
associated with the given enumerated value.
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.