public class ProgressBar extends Panel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINER_ID |
static java.lang.String |
ELEMENT_ID |
static java.lang.String |
LABEL_ID |
static java.lang.String |
VALUE_ID |
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 |
---|---|
|
ProgressBar() |
|
ProgressBar(ElementId elementId,
java.lang.String style) |
|
ProgressBar(RangedValueModel model) |
protected |
ProgressBar(RangedValueModel model,
boolean applyStyles,
ElementId elementId,
java.lang.String style) |
|
ProgressBar(RangedValueModel model,
java.lang.String style) |
|
ProgressBar(java.lang.String style) |
Modifier and Type | Method and Description |
---|---|
Label |
getLabel()
Returns the GUI element that is used for the main progress
bar area and overlay label.
|
java.lang.String |
getMessage()
Returns the message text that currently appears in the progress bar text
overlay.
|
RangedValueModel |
getModel()
Returns the current range model for this progress bar.
|
double |
getProgressPercent()
Returns the current progress value as a percentage (0-1.0) of
the current range.
|
double |
getProgressValue()
Returns the raw progress value.
|
Panel |
getValueIndicator()
Returns the GUI element that is used for the value indicator.
|
static void |
initializeDefaultStyles(Styles styles,
Attributes attrs) |
protected void |
resetStateView() |
void |
setMessage(java.lang.String message)
Sets the message text that appears in the progress bar text overlay.
|
void |
setModel(RangedValueModel model)
Sets the ranged value model that will be used to
calculate progress percentage.
|
void |
setProgressPercent(double percent)
Sets the current progress value as a percentage (0-1.0) of
the current range.
|
void |
setProgressValue(double val)
Sets the raw progress value.
|
void |
updateLogicalState(float tpf) |
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, initializeDefaultStyles, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize, toString
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, 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 CONTAINER_ID
public static final java.lang.String LABEL_ID
public static final java.lang.String VALUE_ID
public ProgressBar()
public ProgressBar(java.lang.String style)
public ProgressBar(ElementId elementId, java.lang.String style)
public ProgressBar(RangedValueModel model)
public ProgressBar(RangedValueModel model, java.lang.String style)
protected ProgressBar(RangedValueModel model, boolean applyStyles, ElementId elementId, java.lang.String style)
public static void initializeDefaultStyles(Styles styles, Attributes attrs)
public void setProgressPercent(double percent)
public double getProgressPercent()
public void setProgressValue(double val)
public double getProgressValue()
public void setModel(RangedValueModel model)
public RangedValueModel getModel()
public void setMessage(java.lang.String message)
public java.lang.String getMessage()
public Label getLabel()
public Panel getValueIndicator()
public void updateLogicalState(float tpf)
updateLogicalState
in class com.jme3.scene.Node
protected void resetStateView()