public class DefaultProgressUpdater extends Object implements ProgressUpdater
ProgressUpdater and prints the
percentage of iterations that is already done on the screen.| Modifier and Type | Field and Description |
|---|---|
protected int |
max
The maximal number of steps.
|
| Constructor and Description |
|---|
DefaultProgressUpdater()
Creates a
DefaultProgressUpdater. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCancelled()
Specifies if the process is cancelled by the user.
|
void |
setMax(int max)
Sets the maximal value that will be set by
ProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call. |
void |
setValue(int value)
Sets the current value the supervised process has reached.
|
public DefaultProgressUpdater()
DefaultProgressUpdater.public void setMax(int max)
ProgressUpdaterProgressUpdater.setValue(int), so a
value of max indicates the end of the supervised method call.setMax in interface ProgressUpdatermax - the maximal valuepublic void setValue(int value)
ProgressUpdatersetValue in interface ProgressUpdatervalue - the current valuepublic boolean isCancelled()
ProgressUpdaterisCancelled in interface ProgressUpdatertrue if process was cancelled, false
otherwise