com.jme.ui
Class UICharacter
java.lang.Object
com.jme.scene.Spatial
com.jme.scene.Node
com.jme.ui.UIObject
com.jme.ui.UICharacter
- All Implemented Interfaces:
- java.io.Serializable
- public class UICharacter
- extends UIObject
UICharacter is used by UIText to create text strings on screen.
Each UICharacter is unique and a part of the whole font file texture.
- Author:
- schustej
- See Also:
- Serialized Form
| Fields inherited from class com.jme.ui.UIObject |
_bottomborder, _height, _leftborder, _quad, _rightborder, _textureStates, _topborder, _width, _x, _y, 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 |
UICharacter(java.lang.String name,
float tx,
float ty,
float tx2,
float ty2)
Constructs a single character UIObject based on a sub-texture location
for the needed character. |
UICharacter(java.lang.String name,
UICharacter tmp,
int x,
int y,
int width,
int height,
float scale,
UIColorScheme scheme)
Copy contstructor, this is used when UIText needs to make a copy of a character
for actual rendering. |
|
Method Summary |
boolean |
update()
Empty |
| 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 |
UICharacter
public UICharacter(java.lang.String name,
float tx,
float ty,
float tx2,
float ty2)
- Constructs a single character UIObject based on a sub-texture location
for the needed character. tx,ty and tx2,ty2 are the texture coordinates
of the corners of the quad
- Parameters:
name - uniquetx - ty - tx2 - ty2 -
UICharacter
public UICharacter(java.lang.String name,
UICharacter tmp,
int x,
int y,
int width,
int height,
float scale,
UIColorScheme scheme)
- Copy contstructor, this is used when UIText needs to make a copy of a character
for actual rendering. The only difference b/t one character and another will be the
location.
We should convert this to using Clones if it makes sense.
- Parameters:
tmp -
update
public boolean update()
- Empty