org.xith3d.ui.hud.geometries
Class NumberGeom
java.lang.Object
org.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
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.
|
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)
|
| 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.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 |
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)
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()