public static class AutoplotDataServer.D2SMonitor extends AbstractProgressMonitor
SIZE_INDETERMINATE
Modifier and Type | Method and Description |
---|---|
void |
setTaskProgress(long position)
Notifies the ProgressMonitor of a change in the progress
of the task.
|
void |
setTaskSize(long taskSize)
Sets the maximum value for the task progress of this
ProgressMonitor . |
canBeCancelled, cancel, finished, getLabel, getProgressMessage, getSubtaskMonitor, getSubtaskMonitor, getTaskProgress, getTaskSize, isCancelled, isFinished, isStarted, setAdditionalInfo, setLabel, setProgressMessage, started, toString
public void setTaskSize(long taskSize)
ProgressMonitor
ProgressMonitor
.setTaskSize
in interface ProgressMonitor
setTaskSize
in class AbstractProgressMonitor
taskSize
- maximum value for the task progress. A taskSize of -1 indicates the taskSize is indeterminate.public void setTaskProgress(long position) throws java.lang.IllegalArgumentException
ProgressMonitor
setTaskProgress
in interface ProgressMonitor
setTaskProgress
in class AbstractProgressMonitor
position
- the current task positionjava.lang.IllegalArgumentException
- if ProgressMonitor.isCancelled()
returns true or,
possibly if started() has not been called or
finished() has been called.