Class COM.bensoft.widgets.ProgressMeter
All Packages Class Hierarchy This Package Previous Next Index
Class COM.bensoft.widgets.ProgressMeter
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----COM.bensoft.widgets.ProgressMeter
- public class ProgressMeter
- extends Canvas
ProgressMeter implements a simple, but effective, progress
meter (or "thermometer").
- Author:
- Michael Benson
-
ProgressMeter()
- ProgressMeter constructor.
-
getMax()
- Returns the current upper limit.
-
getMin()
- Returns the current lower limit.
-
getValue()
- Returns the current value of the progress meter.
-
increment(int)
- Increments the current value of the progress meter and redraws it.
-
paint(Graphics)
- Overrides the action method in Canvas to redraw
the progress meter.
-
setLimits(int, int)
- Sets the upper and lower limits of the progress meter.
-
setValue(int)
- Sets the current value of the progress meter and redraws it.
ProgressMeter
public ProgressMeter()
- ProgressMeter constructor.
setLimits
public void setLimits(int min,
int max)
- Sets the upper and lower limits of the progress meter.
- Parameters:
- min - the lower limit.
- max - the upper limit.
setValue
public void setValue(int val)
- Sets the current value of the progress meter and redraws it.
Insures the value is within the limits.
- Parameters:
- val - the current value.
increment
public void increment(int i)
- Increments the current value of the progress meter and redraws it.
Insures the value is within the limits.
- Parameters:
- i - the amount by which to increment.
getMin
public int getMin()
- Returns the current lower limit.
- Returns:
- the lower limit.
getMax
public int getMax()
- Returns the current upper limit.
- Returns:
- the upper limit.
getValue
public int getValue()
- Returns the current value of the progress meter.
- Returns:
- the current value.
paint
public void paint(Graphics g)
- Overrides the action method in Canvas to redraw
the progress meter.
- Parameters:
- g - the graphics context.
- Overrides:
- paint in class Canvas
- See Also:
- paint
All Packages Class Hierarchy This Package Previous Next Index