org.xith3d.ui.text2d
Class MultiCharacter2D

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.scenegraph.MultiShape3D
                      extended by org.xith3d.ui.text2d.MultiCharacter2D
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode

public class MultiCharacter2D
extends MultiShape3D

This Character2D can contain multiple Character2Ds at a time through a MultiShape3D.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
MultiCharacter2D(char[] characters, org.openmali.vecmath2.Colorf color, java.awt.Font font)
           
 
Method Summary
 char getActiveChar()
           
 org.openmali.vecmath2.Colorf getColor()
           
 float getHeight()
           
 org.openmali.vecmath2.Tuple2f getSize()
           
 float getWidth()
           
 void setActiveChar(char ch)
          Sets the active char for this MultiCharacter2D.
 
Methods inherited from class org.xith3d.scenegraph.MultiShape3D
addUnit, addUnit, getActiveUnit, getActiveUnitName, getNumberOfUnits, getUnits, setActiveUnit, setActiveUnit, setModListener
 
Methods inherited from class org.xith3d.scenegraph.Shape3D
absorbDetails, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, getGeometry, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, 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, setLive, 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

MultiCharacter2D

public MultiCharacter2D(char[] characters,
                        org.openmali.vecmath2.Colorf color,
                        java.awt.Font font)
Method Detail

setActiveChar

public void setActiveChar(char ch)
Sets the active char for this MultiCharacter2D.

Parameters:
ch -

getActiveChar

public char getActiveChar()
Returns:
the active char of this MultiCharacter2D.

getColor

public org.openmali.vecmath2.Colorf getColor()

getSize

public org.openmali.vecmath2.Tuple2f getSize()

getWidth

public float getWidth()

getHeight

public float getHeight()