public class ProgressUpdater extends Object
Constructor and Description |
---|
ProgressUpdater()
Creates a new
ProgressUpdater . |
Modifier and Type | Method and Description |
---|---|
void |
add(double val)
Increases the internal current value.
|
double |
getPercentage()
Returns the percentage of a tool's work that has been completed so far.
|
boolean |
isIndeterminate()
Checks if this progress is indeterminate.
|
void |
setCurrent(double curr)
Sets the value corresponding to the current progress
|
void |
setIndeterminate()
Sets the progress to indeterminate.
|
void |
setLast(double last)
Sets the value that is reached upon completion of the monitored task.
|
public ProgressUpdater()
ProgressUpdater
.public void setLast(double last)
last
- the final valuepublic void setCurrent(double curr)
curr
- the current value of progresspublic double getPercentage()
public void setIndeterminate()
public boolean isIndeterminate()
public void add(double val)
val
- the value to be added to the current value