|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.topcat.plot2.Progresser
public class Progresser
Manages use of a JProgressBar model. The methods of this class may be called from any thread.
Constructor Summary | |
---|---|
Progresser(BoundedRangeModel progModel,
long count)
Constructs a progresser with default step values. |
|
Progresser(BoundedRangeModel progModel,
long count,
int maxStepCount,
int minStepSize,
long minStartMillis,
long minUpdateMillis)
Constructs a progresser with step value configuration. |
Method Summary | |
---|---|
void |
increment()
Records a single increment contributing to the progress. |
void |
init()
Prepares this progresser for use. |
void |
reset()
Resets this progresser and its GUI to its initial state (no progress). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Progresser(BoundedRangeModel progModel, long count)
progModel
- progress bar modelcount
- number of increments expected for progress completionpublic Progresser(BoundedRangeModel progModel, long count, int maxStepCount, int minStepSize, long minStartMillis, long minUpdateMillis)
progModel
- progress bar modelcount
- number of increments expected for progress completionmaxStepCount
- maximum number of steps that will be recorded
in the GUI for progress completionminStepSize
- minimum number of increments before a step is
recorded in the GUIminStartMillis
- minimum interval in milliseconds after
initialisation before the first update is mademinUpdateMillis
- minimum interval in milliseconds between
updatesMethod Detail |
---|
public void init()
public void increment()
public void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |