com.jmex.font2d
Class Text2D

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Geometry
          extended by com.jme.scene.Text
              extended by com.jmex.font2d.Text2D
All Implemented Interfaces:
Savable, JmeText, java.io.Serializable

public class Text2D
extends Text
implements JmeText

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode
 
Field Summary
(package private)  Font2D factory
           
 
Fields inherited from class com.jme.scene.Text
DEFAULT_FONT
 
Fields inherited from class com.jme.scene.Geometry
binormalBuf, bound, castsShadows, colorBuf, compVect, defaultColor, displayListID, enabled, fogBuf, hasDirtyVertices, normBuf, states, tangentBuf, texBuf, vboInfo, vertBuf, vertQuantity
 
Fields inherited from class com.jme.scene.Spatial
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder
 
Constructor Summary
Text2D(Font2D factory, java.lang.String text, float size, int flags)
           
 
Method Summary
 void appendText(java.lang.String text)
          Append text to the string of text that this object is visualizing.
 TextFactory getFactory()
           
 int getFlags()
           
 float getSize()
           
 void setSize(float size)
          change the size of the font, this will most likely be implemented with scaling, so watch out when using this and setLocalScale(...).
 void setText(java.lang.String text)
          Sets the string of text that this object is visualizing, the geometry of the object should change to reflect the change.
 
Methods inherited from class com.jme.scene.Text
applyRenderState, createDefaultTextLabel, createDefaultTextLabel, draw, findCollisions, getDefaultFontTextureState, getFontBlend, getHeight, getText, getTextColor, getWidth, hasCollision, print, print, read, resetDefaultFontTextureState, resetFontTexture, setTextColor, write
 
Methods inherited from class com.jme.scene.Geometry
addTextureCoordinates, addTextureCoordinates, checkTextureCoordinates, clearBuffers, clearTextureBuffers, copyTextureCoordinates, copyTextureCoordinates, findPick, getBinormalBuffer, getColorBuffer, getDefaultColor, getDisplayListID, getFogBuffer, getLightState, getModelBound, getNormalBuffer, getNumberOfUnits, getTangentBuffer, getTextureCoords, getTextureCoords, getTriangleCount, getVBOInfo, getVertexBuffer, getVertexCount, getWorldCoords, getWorldNormals, hasDirtyVertices, isCastsShadows, lockMeshes, postdraw, predraw, randomVertex, reconstruct, resizeTextureIds, rotateNormals, rotatePoints, scaleTextureCoordinates, scaleTextureCoordinates, setBinormalBuffer, setCastsShadows, setColorBuffer, setDefaultColor, setDisplayListID, setFogCoordBuffer, setHasDirtyVertices, setLightState, setModelBound, setNormalBuffer, setRandomColors, setSolidColor, setTangentBuffer, setTextureCoords, setTextureCoords, setTextureCoords, setVBOInfo, setVertexBuffer, setVertexCount, sortLights, translatePoints, translatePoints, unlockMeshes, updateModelBound, updateWorldBound
 
Methods inherited from class com.jme.scene.Spatial
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBounds, lockBranch, lockMeshes, lockShadows, lockTransforms, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBounds, unlockBranch, unlockMeshes, unlockShadows, unlockTransforms, updateGeometricState, updateRenderState, updateRenderState, updateWorldData, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jmex.font3d.JmeText
getText, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Field Detail

factory

Font2D factory
Constructor Detail

Text2D

public Text2D(Font2D factory,
              java.lang.String text,
              float size,
              int flags)
Method Detail

appendText

public void appendText(java.lang.String text)
Description copied from interface: JmeText
Append text to the string of text that this object is visualizing.

Specified by:
appendText in interface JmeText

getFactory

public TextFactory getFactory()
Specified by:
getFactory in interface JmeText
Returns:
the factory where this text was created, or null if it does not know.

getFlags

public int getFlags()
Specified by:
getFlags in interface JmeText
Returns:
the flags that were given when this text was created.

getSize

public float getSize()
Specified by:
getSize in interface JmeText
Returns:
the size of the text (normally size 12 refers to 12pt, in jme I guess it refers to jme-units).

setSize

public void setSize(float size)
Description copied from interface: JmeText
change the size of the font, this will most likely be implemented with scaling, so watch out when using this and setLocalScale(...).

Specified by:
setSize in interface JmeText

setText

public void setText(java.lang.String text)
Description copied from interface: JmeText
Sets the string of text that this object is visualizing, the geometry of the object should change to reflect the change.

Specified by:
setText in interface JmeText