org.xith3d.ui.hud.geometries
Class NumberGeom

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.Leaf
              extended by org.xith3d.scenegraph.Shape3D
                  extended by org.xith3d.ui.hud.geometries.NumberGeom
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode

public class NumberGeom
extends Shape3D

This Shape carries a geometry, which's vertex-coords and tex-coords are updated to display a floating-point-number in an efficient way.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
NumberGeom(java.awt.Font font, org.openmali.vecmath2.Colorf color, int maxLength, char decimalChar, int numFractions, float initialValue)
           
NumberGeom(java.awt.Font font, org.openmali.vecmath2.Colorf color, int maxLength, char decimalChar, int numFractions, float initialValue, float geomOffsetX, float geomOffsetY, float geomOffsetZ)
           
NumberGeom(java.awt.Font font, org.openmali.vecmath2.Colorf color, int maxLength, char decimalChar, int numFractions, float initialValue, org.openmali.vecmath2.Tuple3f geomOffset)
           
NumberGeom(java.awt.Font font, org.openmali.vecmath2.Colorf color, int maxLength, float initialValue)
           
 
Method Summary
 org.openmali.vecmath2.Colorf getColor()
           
 char getDecimalhar()
           
 Font2D getFont()
           
 TriangleStripArray getGeometry()
          
 org.openmali.vecmath2.Vector3f getGeomOffset()
           
 float getHeight()
           
 int getMaxLength()
           
 int getNumFractions()
           
 float getValue()
           
 float getWidth()
           
 void setColor(org.openmali.vecmath2.Colorf color)
           
 void setGeometry(Geometry geometry)
          Sets the geometry for this object.
 void setGeomOffset(org.openmali.vecmath2.Tuple3f offset)
           
 void setNumFractions(int numFractions)
           
 void setValue(float value)
           
protected  void updateValue()
           
protected  void updateVertices(float value, int numMantisse, char decimalChar, int numFractions)
           
 
Methods inherited from class org.xith3d.scenegraph.Shape3D
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange
 
Methods inherited from class org.xith3d.scenegraph.Leaf
dump, getPickHost, setPickHost
 
Methods inherited from class org.xith3d.scenegraph.Node
cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBoundsAutoCompute, setBoundsDirty, setBoundsDirtyUpward, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setOrderedChild, setParent, setPickable, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateOrderedChild, updateTransformGroup
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberGeom

public NumberGeom(java.awt.Font font,
                  org.openmali.vecmath2.Colorf color,
                  int maxLength,
                  char decimalChar,
                  int numFractions,
                  float initialValue,
                  float geomOffsetX,
                  float geomOffsetY,
                  float geomOffsetZ)

NumberGeom

public NumberGeom(java.awt.Font font,
                  org.openmali.vecmath2.Colorf color,
                  int maxLength,
                  char decimalChar,
                  int numFractions,
                  float initialValue,
                  org.openmali.vecmath2.Tuple3f geomOffset)

NumberGeom

public NumberGeom(java.awt.Font font,
                  org.openmali.vecmath2.Colorf color,
                  int maxLength,
                  char decimalChar,
                  int numFractions,
                  float initialValue)

NumberGeom

public NumberGeom(java.awt.Font font,
                  org.openmali.vecmath2.Colorf color,
                  int maxLength,
                  float initialValue)
Method Detail

getFont

public final Font2D getFont()

setColor

public void setColor(org.openmali.vecmath2.Colorf color)

getColor

public org.openmali.vecmath2.Colorf getColor()

getDecimalhar

public final char getDecimalhar()

getMaxLength

public final int getMaxLength()

setGeomOffset

public void setGeomOffset(org.openmali.vecmath2.Tuple3f offset)

getGeomOffset

public final org.openmali.vecmath2.Vector3f getGeomOffset()

updateVertices

protected final void updateVertices(float value,
                                    int numMantisse,
                                    char decimalChar,
                                    int numFractions)

updateValue

protected void updateValue()

setValue

public void setValue(float value)

getValue

public final float getValue()

setNumFractions

public void setNumFractions(int numFractions)

getNumFractions

public final int getNumFractions()

setGeometry

public void setGeometry(Geometry geometry)
Sets the geometry for this object.

Overrides:
setGeometry in class Shape3D
Parameters:
geometry - The new geometry

getGeometry

public TriangleStripArray getGeometry()

Overrides:
getGeometry in class Shape3D
Returns:
the Geometry for this object.

getWidth

public final float getWidth()

getHeight

public final float getHeight()