com.jme.ui
Class UIText
java.lang.Object
com.jme.scene.Spatial
com.jme.scene.Node
com.jme.ui.UIObject
com.jme.ui.UIText
- All Implemented Interfaces:
- java.io.Serializable
- public class UIText
- extends UIObject
A specialized Node that works like a UIObject and holds as many
UICharacters as are needed to create a string on screen
- Author:
- schustej
- See Also:
- Serialized Form
| Fields inherited from class com.jme.ui.UIObject |
_bottomborder, _height, _leftborder, _quad, _rightborder, _textureStates, _topborder, _width, BORDER, INVERSE_BORDER, TEXTURE |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
|
Constructor Summary |
UIText(java.lang.String nodeName,
UIFonts fonts,
java.lang.String fontName,
java.lang.String text,
int x,
int y,
float xtrim,
float ytrim,
int targheight,
int targwidth,
UIColorScheme scheme,
int flags)
|
UIText(java.lang.String nodeName,
UIFonts fonts,
java.lang.String fontName,
java.lang.String text,
int x,
int y,
float xtrim,
float ytrim,
int targheight,
int targwidth,
UIColorScheme scheme,
int flags,
boolean useClassLoader)
|
|
Method Summary |
void |
setText(java.lang.String text)
Called to set what text is rendered by UIText |
boolean |
update()
Empty, just here to create consistent interface |
| Methods inherited from class com.jme.scene.Node |
applyRenderState, attachChild, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, drawBounds, findCollisions, findPick, getChild, getChild, getChildren, getQuantity, hasChild, hasCollision, putClone, setChild, setForceView, updateCollisionTree, updateWorldBound, updateWorldData |
| Methods inherited from class com.jme.scene.Spatial |
addController, applyDefaultStates, calculateCollisions, calculatePick, clearCurrentState, clearCurrentStates, clearRenderState, getController, getControllers, getCurrentState, getLastFrustumIntersection, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getName, getParent, getRenderQueueMode, getRenderStateList, getTextureCombineMode, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, isForceCulled, isForceView, onDraw, onDrawBounds, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeFromParent, setForceCull, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setName, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setWorldBound, setZOrder, toString, updateGeometricState, updateRenderState, updateRenderState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_texSizeX
public float _texSizeX
_texSizeY
public float _texSizeY
_xtrimFactor
public float _xtrimFactor
_ytrimFactor
public float _ytrimFactor
UIText
public UIText(java.lang.String nodeName,
UIFonts fonts,
java.lang.String fontName,
java.lang.String text,
int x,
int y,
float xtrim,
float ytrim,
int targheight,
int targwidth,
UIColorScheme scheme,
int flags)
UIText
public UIText(java.lang.String nodeName,
UIFonts fonts,
java.lang.String fontName,
java.lang.String text,
int x,
int y,
float xtrim,
float ytrim,
int targheight,
int targwidth,
UIColorScheme scheme,
int flags,
boolean useClassLoader)
setText
public void setText(java.lang.String text)
- Called to set what text is rendered by UIText
- Parameters:
text -
update
public boolean update()
- Empty, just here to create consistent interface
- Returns: