net.jbeans.j3d.modeler.scene.glyph
Class GString

java.lang.Object
  extended bynet.jbeans.j3d.modeler.scene.glyph.GString
All Implemented Interfaces:
GlyphSource, java.io.Serializable

public class GString
extends java.lang.Object
implements GlyphSource, java.io.Serializable

GString is a glyph source which generatees javax.media.j3d.Shape3D object from a string.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
GlyphSource, Serializable, Serialized Form

Field Summary
static int STRING_2D
           
static int STRING_3D
           
 
Constructor Summary
GString()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
           
 int getAlignment()
           
 javax.media.j3d.Appearance getAppearanceOfNode(javax.media.j3d.Node node)
          Returns javax.media.3d.Appearance object.
 int[] getEssentials()
           
 java.awt.Font getFont()
           
 javax.vecmath.Color3f getFontColor()
           
 javax.media.j3d.Node getNode()
          Returns javax.media.3d.Node object.
 int getPath()
           
 float getRectangleScaleFactor()
           
 java.lang.reflect.Method[] getSetMethods()
          Returns an array containing methods to set data to construct a glyph source.
 java.lang.String getString()
           
 java.lang.String getStringForNull()
           
 int getType()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
           
 void setAlignment(int alignment)
           
 void setAppearanceOfNode(javax.media.j3d.Node node, javax.media.j3d.Appearance appearance)
          Updates the specified Appearance object.
 void setFont(java.awt.Font font)
           
 void setFontColor(javax.vecmath.Color3f color)
           
 void setPath(int path)
           
 void setRectangleScaleFactor(float factor)
           
 void setString(java.lang.String string)
           
 void setStringForNull(java.lang.String nullStr)
           
 void setType(int type)
           
 javax.media.j3d.Node updateNode(javax.media.j3d.Node node)
          Updates the specified Shape3D object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_2D

public static final int STRING_2D
See Also:
Constant Field Values

STRING_3D

public static final int STRING_3D
See Also:
Constant Field Values
Constructor Detail

GString

public GString()
Method Detail

setStringForNull

public void setStringForNull(java.lang.String nullStr)

getStringForNull

public java.lang.String getStringForNull()

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)

setType

public void setType(int type)

getType

public int getType()

setFont

public void setFont(java.awt.Font font)

getFont

public java.awt.Font getFont()

setAlignment

public void setAlignment(int alignment)

getAlignment

public int getAlignment()

setPath

public void setPath(int path)

getPath

public int getPath()

setFontColor

public void setFontColor(javax.vecmath.Color3f color)

getFontColor

public javax.vecmath.Color3f getFontColor()

setRectangleScaleFactor

public void setRectangleScaleFactor(float factor)

getRectangleScaleFactor

public float getRectangleScaleFactor()

setString

public void setString(java.lang.String string)

getString

public java.lang.String getString()

getNode

public javax.media.j3d.Node getNode()
Description copied from interface: GlyphSource
Returns javax.media.3d.Node object.

Specified by:
getNode in interface GlyphSource

updateNode

public javax.media.j3d.Node updateNode(javax.media.j3d.Node node)
Updates the specified Shape3D object.

Specified by:
updateNode in interface GlyphSource

getSetMethods

public java.lang.reflect.Method[] getSetMethods()
Returns an array containing methods to set data to construct a glyph source. setString(String);

Specified by:
getSetMethods in interface GlyphSource

getEssentials

public int[] getEssentials()
Specified by:
getEssentials in interface GlyphSource

getAppearanceOfNode

public javax.media.j3d.Appearance getAppearanceOfNode(javax.media.j3d.Node node)
Returns javax.media.3d.Appearance object.

Specified by:
getAppearanceOfNode in interface GlyphSource

setAppearanceOfNode

public void setAppearanceOfNode(javax.media.j3d.Node node,
                                javax.media.j3d.Appearance appearance)
Updates the specified Appearance object.

Specified by:
setAppearanceOfNode in interface GlyphSource


Copyright © 1995-2004 net.jbeans. All Rights Reserved.