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)
ProgressUpdater
ProgressUpdater.setValue(int)
, so a
value of max indicates the end of the supervised method call.setMax
in interface ProgressUpdater
max
- the maximal valuepublic void setValue(int value)
ProgressUpdater
setValue
in interface ProgressUpdater
value
- the current valuepublic boolean isCancelled()
ProgressUpdater
isCancelled
in interface ProgressUpdater
true
if process was cancelled, false
otherwise