public class ShapeProgressBar extends ShapeInputControl
ShapeControl.ValueType
TYPE_DOUBLE, TYPE_INT, TYPE_STRING
UNKNOWN_NAME
Constructor and Description |
---|
ShapeProgressBar(Presentable p,
boolean ispublic,
double x,
double y,
double width,
double height,
boolean vertical,
double min,
double max)
Creates a persistent progress bar control.
|
ShapeProgressBar(Presentable p,
boolean ispublic,
double x,
double y,
double width,
double height,
java.awt.Color backgroundColor,
boolean vertical,
double min,
double max)
Deprecated.
may be removed in future releases
|
Modifier and Type | Method and Description |
---|---|
void |
action()
Does nothing since progress bar has no action.
|
void |
executeAction()
This method is internal and shouldn't be called by user.
|
double |
getMax()
Returns the maximum value of the progress bar.
|
double |
getMin()
Returns the minimum value of the progress bar.
|
int |
getPercent()
Returns progress percents (integer value from 0 to 100)
|
double |
getValue()
Returns the current value of the progress bar.
|
void |
setDeterminate(boolean val)
Sets determinate property of progress bar,
which determines whether the progress bar is in determinate
or indeterminate mode.
|
void |
setProgressString(java.lang.String val)
Sets the String value of the progress bar.
|
void |
setRange(double min,
double max)
Sets the minimum and maximum values of the progress bar.
|
void |
setValue(double val)
Sets the value of the progress bar.
|
void |
setValueToDefault()
Does nothing since progress bar has no default value.
|
postSVGShapeSpecificAttributes
clone, contains, getHeight, getPresentable, getWidth, isEnabled, randomPointInside, restoreOwner, setEnabled, setHeight, setWidth
canHandleClick, executeUserAction, findSVGElement, getDrawMode, getGroup, getLevel, getName, getRotation, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, randomPointInside, removeSVGFromOwner, removeSVGImage, resetSVGState, setLevel, setPos, setPos, setPublic_xjal, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, postInitialize
@Deprecated public ShapeProgressBar(Presentable p, boolean ispublic, double x, double y, double width, double height, java.awt.Color backgroundColor, boolean vertical, double min, double max)
public ShapeProgressBar(Presentable p, boolean ispublic, double x, double y, double width, double height, boolean vertical, double min, double max)
p
- the presentable object owning this controlispublic
- if true
, the control is visible on container's presentationx
- the x coordinatey
- the y coordinatewidth
- the widthheight
- the heightvertical
- if true
- vertical, otherwise horizontalmin
- the minimum value of the progress barmax
- the maximum value of the progress bar@AnyLogicInternalAPI public final void action()
action
in class ShapeControl
public final void setValueToDefault()
setValueToDefault
in class ShapeControl
public void setValue(double val)
val
- the new valuepublic void setProgressString(java.lang.String val)
val
- the new value or null
to hide progress stringpublic void setDeterminate(boolean val)
true
.val
- public double getValue()
public int getPercent()
public void setRange(double min, double max)
min
- the new minimum valuemax
- the new maximum valuepublic double getMin()
public double getMax()
@AnyLogicInternalAPI public void executeAction()
ShapeControl
executeAction
in class ShapeControl
Copyright © AnyLogic North America, LLC. All Rights Reserved.