public class JMEMutableLabel extends JMEItem implements IMutableLabel, IInitable
com.jme3.scene.Spatial.CullHint
INestable.IChildrenChangedListener
KEY_JMEITEMDATA
Constructor and Description |
---|
JMEMutableLabel(java.lang.String name,
java.util.UUID uuid)
Instantiates a new JME mutable label.
|
Modifier and Type | Method and Description |
---|---|
void |
appendChar(char theChar)
Append char.
|
com.jme3.scene.Spatial |
getManipulableSpatial()
Gets the manipulable spatial.
|
java.lang.String |
getText()
Gets the text.
|
com.jme3.math.Vector2f |
getTextSize()
Gets the text size.
|
void |
initializeGeometry(com.jme3.asset.AssetManager assetManager)
Initialize geometry.
|
boolean |
isBoxSizeSet()
Checks if is box size set.
|
void |
removeChar()
Removes the char.
|
void |
setBoxSize(float width,
float height)
Sets the box size.
|
void |
setFont(java.lang.String resourcePath)
Sets the font.
|
void |
setFontScale(float scale)
Sets the font scale.
|
void |
setText(java.lang.String text)
Sets the text.
|
addItem, addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, deRegisterChildrenChangedListener, getBehaviours, getBehaviours, getChildItems, getChildrenCount, getItemChildren, getItemListeners, getItemName, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, hasChildren, isVisible, registerChildrenChangedListener, removeAllItems, removeItem, removeItemListener, setInteractionEnabled, setItemListeners, setItemName, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder, toString
attachChild, attachChildAt, childChange, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLodLevel, setMaterial, setModelBound, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, write
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, getControl, getControl, getCullHint, getLastFrustumIntersection, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setCullHint, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setShadowMode, setUserData, worldToLocal
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addItemListener, behaviourAdded, centerItem, convertWorldVelocityToLocalVelocity, getBehaviours, getBehaviours, getItemListeners, getMultiTouchDispatcher, getName, getParentItem, getRelativeLocation, getRelativeLocationOfWorldLocation, getRelativeRotation, getRelativeScale, getUUID, getWorldLocation, getWorldLocation, getWorldRotationDegrees, getZOrder, getZOrderManager, isVisible, removeItemListener, setInteractionEnabled, setItemListeners, setParentItem, setRelativeLocation, setRelativeRotation, setRelativeScale, setVisible, setWorldLocation, setZOrder
addItem, deRegisterChildrenChangedListener, getChildItems, getChildrenCount, hasChildren, registerChildrenChangedListener, removeAllItems, removeItem
public JMEMutableLabel(java.lang.String name, java.util.UUID uuid)
name
- the nameuuid
- the uuidpublic void appendChar(char theChar)
IMutableLabel
appendChar
in interface IMutableLabel
theChar
- the char atpublic com.jme3.scene.Spatial getManipulableSpatial()
IItem
getManipulableSpatial
in interface IItem
public java.lang.String getText()
IMutableLabel
getText
in interface IMutableLabel
public com.jme3.math.Vector2f getTextSize()
IMutableLabel
getTextSize
in interface IMutableLabel
public void initializeGeometry(com.jme3.asset.AssetManager assetManager)
IInitable
initializeGeometry
in interface IInitable
assetManager
- the asset managerpublic boolean isBoxSizeSet()
IMutableLabel
isBoxSizeSet
in interface IMutableLabel
public void removeChar()
IMutableLabel
removeChar
in interface IMutableLabel
public void setBoxSize(float width, float height)
IMutableLabel
setBoxSize
in interface IMutableLabel
width
- the widthheight
- the heightpublic void setFont(java.lang.String resourcePath)
IMutableLabel
setFont
in interface IMutableLabel
resourcePath
- the new fontpublic void setFontScale(float scale)
IMutableLabel
setFontScale
in interface IMutableLabel
scale
- the new font scalepublic void setText(java.lang.String text)
IMutableLabel
setText
in interface IMutableLabel
text
- the new text