|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.Shape
com.xj.anylogic.engine.presentation.ShapeControl
com.xj.anylogic.engine.presentation.ShapeProgressBar
public class ShapeProgressBar
Progress bar control. Embeds JProgressBar.
This object is only available in the AnyLogic Professional
| Field Summary |
|---|
| Fields inherited from class com.xj.anylogic.engine.presentation.ShapeControl |
|---|
TYPE_DOUBLE, TYPE_INT, TYPE_STRING |
| Fields inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
UNKNOWN_NAME |
| Constructor Summary | |
|---|---|
ShapeProgressBar(Presentable p,
boolean ispublic,
int x,
int y,
int width,
int height,
java.awt.Color backgroundColor,
boolean vertical,
double min,
double max)
Creates a persistent progress bar control. |
|
| Method Summary | |
|---|---|
void |
action()
Does nothing since progress bar has no action. |
javax.swing.JComponent |
getJComponent()
Returns the embedded JProgressBar. |
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. |
void |
update()
Updates the specific properties of a non-persistent progress bar that are to be updated on each frame: min/max. |
| Methods inherited from class com.xj.anylogic.engine.presentation.ShapeControl |
|---|
clone, contains, draw, getHeight, getPresentable, getWidth, isEnabled, onClickAt, restoreOwner, setEnabled, setHeight, setWidth |
| Methods inherited from class com.xj.anylogic.engine.presentation.Shape |
|---|
canHandleClick, getGroup, getName, getRotation, getScaleX, getScaleY, getX, getY, isVisible, onClick, setPos, setRotation, setScale, setScale, setScaleX, setScaleY, setVisible, setX, setY |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeProgressBar(Presentable p,
boolean ispublic,
int x,
int y,
int width,
int height,
java.awt.Color backgroundColor,
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 heightbackgroundColor - the background colorvertical - if true - vertical, otherwise horizontalmin - the minimum value of the progress barmax - the maximum value of the progress bar| Method Detail |
|---|
public final void action()
action in class ShapeControlpublic javax.swing.JComponent getJComponent()
getJComponent in class ShapeControlpublic final void setValueToDefault()
setValueToDefault in class ShapeControlpublic 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()
public void update()
update in class ShapeControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||