public class ProgressBarFigure extends BaseFigure
JProgressBar.
By default, the progress bar will be indeterminate. In this case, an animation is set up to show a bouncing box within the given displayable area.
ActorWithProgressBarBaseFigure.Orientation_lastUpdate, _orientation, _shape, isDebugging, log| Constructor and Description |
|---|
ProgressBarFigure(java.awt.geom.RectangularShape shape)
Creates an horizontal and indeterminate progress bar figure.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_update()
Updates the appearance of this progress bar.
|
java.awt.Color |
getBackgroundColor() |
int |
getCurrentValue()
Gets the current value associated for a determinate progress bar.
|
java.awt.Color |
getForegroundColor() |
int |
getMaximum()
Gets the maximum value in the range associated for a determinate progress
bar.
|
int |
getMinimum()
Gets the minimum value in the range associated for a determinate progress
bar.
|
boolean |
isIndeterminate()
Tells if this progress bar is indeterminate.
|
void |
setBackgroundColor(java.awt.Color backgroundColor) |
void |
setForegroundColor(java.awt.Color foregroundColor) |
void |
setIndeterminate(boolean indeterminate)
Set the indeterminate flag of this progress bar figure.
|
void |
setMaximum(int n)
Sets the maximum value, which is meaningful only for a determinate
progress bar.
|
void |
setMinimum(int n)
Sets the minimum value, which is meaningful only for a determinate
progress bar.
|
void |
setOrientation(BaseFigure.Orientation orientation)
Sets the orientation and calls
BaseFigure.update() if the orientation
changes. |
void |
setShape(java.awt.geom.RectangularShape shape)
Sets the rectangular shape for this figure.
|
void |
setStarted(boolean started) |
void |
setValue(int n)
Sets the current value, which is meaningful only for a determinate
progress bar.
|
getOrientation, updateadd, add, contains, figures, figuresFromBack, figuresFromFront, get, getBackgroundFigure, getBounds, getChildren, getFigureCount, getOrigin, getShape, getTransformContext, indexOf, intersects, invalidateCachedBounds, paint, paint, pick, pick, remove, remove, repaint, replaceChild, setBackgroundFigure, setIndex, toString, transform, translatecontains, getInteractor, getLayer, getParent, getToolTipText, getUserObject, hit, isVisible, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisiblepublic ProgressBarFigure(java.awt.geom.RectangularShape shape)
shape - Rectangular shape for the progress bar.public void setOrientation(BaseFigure.Orientation orientation)
BaseFigure.update() if the orientation
changes.setOrientation in class BaseFigureorientation - the orientation.public void setIndeterminate(boolean indeterminate)
indeterminate - true for indeterminate, false for determinate.public void setMaximum(int n)
n - the maximum value.public void setMinimum(int n)
n - the minimum value.public void setValue(int n)
n - the current value.public boolean isIndeterminate()
public int getCurrentValue()
public int getMaximum()
public int getMinimum()
public java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color backgroundColor)
backgroundColor - the backgroundColor to setpublic java.awt.Color getForegroundColor()
public void setForegroundColor(java.awt.Color foregroundColor)
foregroundColor - the foregroundColor to setpublic void setShape(java.awt.geom.RectangularShape shape)
shape - public void setStarted(boolean started)
protected void _update()
_update in class BaseFigure