| java.lang.Object javax.media.j3d.IndexedObject javax.media.j3d.SceneGraphObjectRetained javax.media.j3d.NodeComponentRetained javax.media.j3d.GeometryRetained javax.media.j3d.Text3DRetained
Method Summary | |
synchronized void | computeBoundingBox() | void | execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors) | final int | getAlignment() Retrieves the text alignment policy for this Text3D NodeComponent
object. | final void | getBoundingBox(BoundingBox bounds) Retrieves the 3D bounding box that encloses this Text3D object. | final float | getCharacterSpacing() Retrieves the character spacing used to construct the Text3D string.
This spacing is in addition to the regular spacing between glyphs as
defined in the Font object. | int | getClassType() | final Font3D | getFont3D() Returns the Font3D objects used by this Text3D NodeComponent object. | final int | getPath() Retrieves the node's path field. | final void | getPosition(Point3f position) Copies the node's position field into the supplied
parameter. | final String | getString() Copies the character string used in the construction of the
Text3D node into the supplied parameter. | ArrayList | getUniqueSource(ArrayList shapeList) | boolean | intersect(PickShape pickShape, PickInfo pickInfo, int flags, Point3d iPnt, GeometryRetained geom, int geomIndex) | boolean | intersect(Point3d[] pnts) | boolean | intersect(Transform3D thisToOtherVworld, GeometryRetained geom) | boolean | intersect(Bounds targetBound) | final void | sendDataChangedMessage() | final void | sendTransformChangedMessage() | final void | setAlignment(int alignment) Sets the text alignment policy for this Text3D NodeComponent
object. | final void | setCharacterSpacing(float characterSpacing) Sets the character spacing used hwne constructing the Text3D string.
This spacing is in addition to the regular spacing between glyphs as
defined in the Font object. | final void | setFont3D(Font3D font3d) Sets the Font3D object used by this Text3D NodeComponent object. | void | setLive(boolean inBackgroundGroup, int refCount) This method is called when the SceneGraph becomes live. | void | setModelViewMatrix(Transform3D vpcToEc, Transform3D drawTransform) | final void | setPath(int path) Sets the node's path field. | final void | setPosition(Point3f position) Sets the node's position field to the supplied
parameter. | final void | setString(String string) Copies the character string from the supplied parameter into Tex3D
node. | void | update() | final void | updateCharacterData() Update internal reprsentation of tranform matrices and geometry. | final void | updateTransformData() Update per character transform based on Text3D location,
per character size and path. |
alignmentpath | int alignmentpath(Code) | | |
charSpacing | float charSpacing(Code) | | |
charTransforms | Transform3D[] charTransforms(Code) | | The temporary transforms for this Text3D
|
font3D | Font3D font3D(Code) | | Packaged scope variables needed for implementation
|
lower | Point3d lower(Code) | | Bounding box data for this text string.
|
newGeometryAtomList | ArrayList newGeometryAtomList(Code) | | An Array list used for messages
|
position | Point3f position(Code) | | |
targetThreads | final static int targetThreads(Code) | | |
vpcToEc | Transform3D vpcToEc(Code) | | temporary model view matrix for immediate mode only
|
Text3DRetained | Text3DRetained()(Code) | | |
computeBoundingBox | synchronized void computeBoundingBox()(Code) | | |
execute | void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)(Code) | | |
getAlignment | final int getAlignment()(Code) | | Retrieves the text alignment policy for this Text3D NodeComponent
object. The alignment is used to specify how
glyphs in the string are placed in relation to the
position field. Valid values for this field
are:
- ALIGN_CENTER - the center of the string is placed on the
position point.
- ALIGN_FIRST - the first character of the string is placed on
the
position point.
- ALIGN_LAST - the last character of the string is placed on the
position point.
The default value of this field is ALIGN_FIRST .
the current alingment policy for this node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph See Also: Text3DRetained.getPosition |
getBoundingBox | final void getBoundingBox(BoundingBox bounds)(Code) | | Retrieves the 3D bounding box that encloses this Text3D object.
Parameters: bounds - the object to copy the bounding information to. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph See Also: BoundingBox |
getCharacterSpacing | final float getCharacterSpacing()(Code) | | Retrieves the character spacing used to construct the Text3D string.
This spacing is in addition to the regular spacing between glyphs as
defined in the Font object. 1.0 in this space is measured as the
width of the largest glyph in the 2D Font. The default value is
0.0.
the current character spacing value exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getClassType | int getClassType()(Code) | | |
getFont3D | final Font3D getFont3D()(Code) | | Returns the Font3D objects used by this Text3D NodeComponent object.
the Font3D object of this Text3D node - null if no Font3Dhas been associated with this node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getPath | final int getPath()(Code) | | Retrieves the node's path field. This field
is used to specify how succeeding
glyphs in the string are placed in relation to the previous glyph.
Valid values for this field are:
- PATH_LEFT: - succeeding glyphs are placed to the left of the
current glyph.
- PATH_RIGHT: - succeeding glyphs are placed to the right of the
current glyph.
- PATH_UP: - succeeding glyphs are placed above the current glyph.
- PATH_DOWN: - succeeding glyphs are placed below the current glyph.
The default value of this field is PATH_RIGHT .
the current alingment policy for this node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
getPosition | final void getPosition(Point3f position)(Code) | | Copies the node's position field into the supplied
parameter. The position is used to determine the
initial placement of the Text3D string. The position, combined with
the path and alignment control how the text is displayed.
Parameters: position - the point to position the text. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph See Also: Text3DRetained.getAlignment See Also: Text3DRetained.getPath |
getString | final String getString()(Code) | | Copies the character string used in the construction of the
Text3D node into the supplied parameter.
a copy of the String object in this Text3D node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
intersect | boolean intersect(Point3d[] pnts)(Code) | | |
sendDataChangedMessage | final void sendDataChangedMessage()(Code) | | |
sendTransformChangedMessage | final void sendTransformChangedMessage()(Code) | | |
setAlignment | final void setAlignment(int alignment)(Code) | | Sets the text alignment policy for this Text3D NodeComponent
object. The alignment is used to specify how
glyphs in the string are placed in relation to the
position field. Valid values for this field
are:
- ALIGN_CENTER - the center of the string is placed on the
position point.
- ALIGN_FIRST - the first character of the string is placed on
the
position point.
- ALIGN_LAST - the last character of the string is placed on the
position point.
The default value of this field is ALIGN_FIRST .
the current alingment policy for this node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph See Also: Text3DRetained.getPosition |
setCharacterSpacing | final void setCharacterSpacing(float characterSpacing)(Code) | | Sets the character spacing used hwne constructing the Text3D string.
This spacing is in addition to the regular spacing between glyphs as
defined in the Font object. 1.0 in this space is measured as the
width of the largest glyph in the 2D Font. The default value is
0.0.
Parameters: characterSpacing - the new character spacing value exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setFont3D | final void setFont3D(Font3D font3d)(Code) | | Sets the Font3D object used by this Text3D NodeComponent object.
Parameters: font3d - the Font3D object to associate with this Text3D node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setLive | void setLive(boolean inBackgroundGroup, int refCount)(Code) | | This method is called when the SceneGraph becomes live. All characters
used by this.string are tesselated in this method, to avoid wait during
traversal and rendering.
|
setPath | final void setPath(int path)(Code) | | Sets the node's path field. This field
is used to specify how succeeding
glyphs in the string are placed in relation to the previous glyph.
Valid values for this field are:
- PATH_LEFT - succeeding glyphs are placed to the left of the
current glyph.
- PATH_RIGHT - succeeding glyphs are placed to the right of the
current glyph.
- PATH_UP - succeeding glyphs are placed above the current glyph.
- PATH_DOWN - succeeding glyphs are placed below the current glyph.
The default value of this field is PATH_RIGHT .
Parameters: path - the value to set the path to. the current alingment policy for this node. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setPosition | final void setPosition(Point3f position)(Code) | | Sets the node's position field to the supplied
parameter. The position is used to determine the
initial placement of the Text3D string. The position, combined with
the path and alignment control how the text is displayed.
Parameters: position - the point to position the text. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph See Also: Text3DRetained.getAlignment See Also: Text3DRetained.getPath |
setString | final void setString(String string)(Code) | | Copies the character string from the supplied parameter into Tex3D
node.
Parameters: string - the String object to recieve the Text3D node's string. exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
updateCharacterData | final void updateCharacterData()(Code) | | Update internal reprsentation of tranform matrices and geometry.
This method will be called whenever string or font3D change.
|
updateTransformData | final void updateTransformData()(Code) | | Update per character transform based on Text3D location,
per character size and path.
WARNING: Caller of this method must make sure SceneGraph is live,
else exceptions may be thrown.
|
Methods inherited from javax.media.j3d.GeometryRetained | void addUser(Shape3DRetained s)(Code)(Java Doc) boolean canBeInDisplayList(boolean alphaEditable)(Code)(Java Doc) abstract void computeBoundingBox()(Code)(Java Doc) void computeCentroid()(Code)(Java Doc) void decrComputeGeoBounds()(Code)(Java Doc) void doSetLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc) abstract void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)(Code)(Java Doc) abstract int getClassType()(Code)(Java Doc) int getVertexFormat()(Code)(Java Doc) void incrComputeGeoBounds()(Code)(Java Doc) abstract boolean intersect(PickShape pickShape, PickInfo pickInfo, int flags, Point3d iPnt, GeometryRetained geom, int geomIndex)(Code)(Java Doc) abstract boolean intersect(Bounds targetBound)(Code)(Java Doc) abstract boolean intersect(Point3d[] pnts)(Code)(Java Doc) abstract boolean intersect(Transform3D thisToOtherVworld, GeometryRetained geom)(Code)(Java Doc) boolean intersect(Transform3D thisLocalToVworld, Transform3D otherLocalToVworld, GeometryRetained geom)(Code)(Java Doc) boolean intersect(Transform3D thisLocalToVworld, Bounds targetBound)(Code)(Java Doc) boolean isEquivalenceClass(GeometryRetained geometry)(Code)(Java Doc) void removeUser(Shape3DRetained s)(Code)(Java Doc) void setLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc) void storeInterestData(PickInfo pickInfo, int flags, GeometryRetained geom, int geomIndex, int[] vtxIndexArr, Point3d iPnt, double dist)(Code)(Java Doc) abstract void update()(Code)(Java Doc) public void updateObject()(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.IndexedObject | int[][] listIdx(Code)(Java Doc)
|
|
|