synergynetframework.jme.gfx.twod
Class MTText

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Geometry
          extended by com.jme.scene.TriMesh
              extended by com.jme.scene.shape.Quad
                  extended by synergynetframework.jme.gfx.twod.utils.GraphicsImageQuad
                      extended by synergynetframework.jme.gfx.twod.MTText
All Implemented Interfaces:
com.jme.util.export.Savable, java.io.Serializable

public class MTText
extends GraphicsImageQuad

The Class MTText.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.TriMesh
com.jme.scene.TriMesh.Mode
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
com.jme.scene.Spatial.CullHint, com.jme.scene.Spatial.LightCombineMode, com.jme.scene.Spatial.NormalsMode, com.jme.scene.Spatial.TextureCombineMode
 
Field Summary
 
Fields inherited from class com.jme.scene.Geometry
states
 
Fields inherited from class com.jme.scene.Spatial
LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, queueDistance
 
Constructor Summary
MTText(java.lang.String name, com.jme.renderer.ColorRGBA colour, java.awt.Font font, java.lang.String setText)
          Instantiates a new MT text.
MTText(java.lang.String name, com.jme.renderer.ColorRGBA colour, java.awt.Font font, java.lang.String setText, int width)
          Instantiates a new MT text.
 
Method Summary
 void appendText(java.lang.String additionalText)
          Append text.
 void changeColour(com.jme.renderer.ColorRGBA c)
          Change colour.
static float getHeight(java.awt.Font font)
          Gets the height.
static float getWidth(java.lang.String text, java.awt.Font font)
          Gets the width.
 void setColour(com.jme.renderer.ColorRGBA c)
          Sets the colour.
 void setFont(java.awt.Font font)
          Sets the font.
 void setText(java.lang.String newText)
          Sets the text.
 
Methods inherited from class synergynetframework.jme.gfx.twod.utils.GraphicsImageQuad
getImageGraphics, getImageHeight, getImageWidth, getTextureState, recreateImageForSize, setTextureApplyMode, updateGraphics
 
Methods inherited from class com.jme.scene.shape.Quad
getCenter, getHeight, getWidth, initialize, resize, updateGeometry
 
Methods inherited from class com.jme.scene.TriMesh
clearBuffers, draw, findCollisions, findTriangleCollision, findTrianglePick, getIndexBuffer, getMaxIndex, getMeshAsTriangles, getMeshAsTrianglesVertices, getMode, getTriangle, getTriangle, getTriangleCount, getTriangleIndices, hasCollision, hasTriangleCollision, randomPointOnTriangles, read, reconstruct, setIndexBuffer, setMode, setTriangleQuantity, write
 
Methods inherited from class com.jme.scene.Geometry
addTextureCoordinates, addTextureCoordinates, clearTextureBuffers, copyTextureCoordinates, copyTextureCoordinates, findPick, getBinormalBuffer, getColorBuffer, getDefaultColor, getDisplayListID, getFogBuffer, getLightState, getModelBound, getNormalBuffer, getNumberOfUnits, getTangentBuffer, getTextureCoords, getTextureCoords, 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, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBounds, unlockBranch, unlockMeshes, unlockShadows, unlockTransforms, updateGeometricState, updateRenderState, updateWorldData, updateWorldVectors, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag
 

Constructor Detail

MTText

public MTText(java.lang.String name,
              com.jme.renderer.ColorRGBA colour,
              java.awt.Font font,
              java.lang.String setText)
Instantiates a new MT text.

Parameters:
name - the name
colour - the colour
font - the font
setText - the set text

MTText

public MTText(java.lang.String name,
              com.jme.renderer.ColorRGBA colour,
              java.awt.Font font,
              java.lang.String setText,
              int width)
Instantiates a new MT text.

Parameters:
name - the name
colour - the colour
font - the font
setText - the set text
width - the width
Method Detail

getHeight

public static float getHeight(java.awt.Font font)
Gets the height.

Parameters:
font - the font
Returns:
the height

getWidth

public static float getWidth(java.lang.String text,
                             java.awt.Font font)
Gets the width.

Parameters:
text - the text
font - the font
Returns:
the width

appendText

public void appendText(java.lang.String additionalText)
Append text.

Parameters:
additionalText - the additional text

changeColour

public void changeColour(com.jme.renderer.ColorRGBA c)
Change colour.

Parameters:
c - the c

setColour

public void setColour(com.jme.renderer.ColorRGBA c)
Sets the colour.

Parameters:
c - the new colour

setFont

public void setFont(java.awt.Font font)
Sets the font.

Parameters:
font - the new font

setText

public void setText(java.lang.String newText)
Sets the text.

Parameters:
newText - the new text