public class Label extends Panel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_ID |
static java.lang.String |
LAYER_ICON |
static java.lang.String |
LAYER_SHADOW_TEXT |
static java.lang.String |
LAYER_TEXT |
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETS
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform
Modifier | Constructor and Description |
---|---|
|
Label(java.lang.String s) |
protected |
Label(java.lang.String s,
boolean applyStyles,
ElementId elementId,
java.lang.String style) |
|
Label(java.lang.String s,
ElementId elementId) |
|
Label(java.lang.String s,
ElementId elementId,
java.lang.String style) |
|
Label(java.lang.String s,
java.lang.String style) |
Modifier and Type | Method and Description |
---|---|
com.jme3.math.ColorRGBA |
getColor() |
com.jme3.font.BitmapFont |
getFont() |
float |
getFontSize() |
GuiComponent |
getIcon() |
float |
getMaxWidth() |
com.jme3.math.ColorRGBA |
getShadowColor() |
com.jme3.math.Vector3f |
getShadowOffset() |
java.lang.String |
getText() |
HAlignment |
getTextHAlignment() |
VAlignment |
getTextVAlignment() |
static void |
initializeDefaultStyles(Attributes attrs) |
void |
setColor(com.jme3.math.ColorRGBA color) |
void |
setFont(com.jme3.font.BitmapFont font) |
void |
setFontSize(float f) |
void |
setIcon(GuiComponent icon) |
void |
setMaxWidth(float f)
Sets the maximum width of the label.
|
void |
setShadowColor(com.jme3.math.ColorRGBA color) |
void |
setShadowOffset(com.jme3.math.Vector3f offset) |
void |
setText(java.lang.String s) |
void |
setTextHAlignment(HAlignment a) |
void |
setTextVAlignment(VAlignment a) |
java.lang.String |
toString() |
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize
attachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write
addControl, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
public static final java.lang.String ELEMENT_ID
public static final java.lang.String LAYER_ICON
public static final java.lang.String LAYER_TEXT
public static final java.lang.String LAYER_SHADOW_TEXT
public Label(java.lang.String s)
public Label(java.lang.String s, java.lang.String style)
public Label(java.lang.String s, ElementId elementId)
public Label(java.lang.String s, ElementId elementId, java.lang.String style)
protected Label(java.lang.String s, boolean applyStyles, ElementId elementId, java.lang.String style)
public static void initializeDefaultStyles(Attributes attrs)
@StyleAttribute(value="text", lookupDefault=false) public void setText(java.lang.String s)
public java.lang.String getText()
@StyleAttribute(value="textVAlignment", lookupDefault=false) public void setTextVAlignment(VAlignment a)
public VAlignment getTextVAlignment()
@StyleAttribute(value="textHAlignment", lookupDefault=false) public void setTextHAlignment(HAlignment a)
public HAlignment getTextHAlignment()
@StyleAttribute(value="maxWidth", lookupDefault=false) public void setMaxWidth(float f)
public float getMaxWidth()
public void setFont(com.jme3.font.BitmapFont font)
public com.jme3.font.BitmapFont getFont()
@StyleAttribute(value="color") public void setColor(com.jme3.math.ColorRGBA color)
public com.jme3.math.ColorRGBA getColor()
@StyleAttribute(value="fontSize") public void setFontSize(float f)
public float getFontSize()
@StyleAttribute(value="shadowOffset") public void setShadowOffset(com.jme3.math.Vector3f offset)
public com.jme3.math.Vector3f getShadowOffset()
@StyleAttribute(value="shadowColor", lookupDefault=false) public void setShadowColor(com.jme3.math.ColorRGBA color)
public com.jme3.math.ColorRGBA getShadowColor()
@StyleAttribute(value="icon", lookupDefault=false) public void setIcon(GuiComponent icon)
public GuiComponent getIcon()