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, toStringpublic void setTaskSize(long taskSize)
ProgressMonitorProgressMonitor.setTaskSize in interface ProgressMonitorsetTaskSize in class AbstractProgressMonitortaskSize - maximum value for the task progress. A taskSize of -1 indicates the taskSize is indeterminate.public void setTaskProgress(long position)
throws java.lang.IllegalArgumentException
ProgressMonitorsetTaskProgress in interface ProgressMonitorsetTaskProgress in class AbstractProgressMonitorposition - the current task positionjava.lang.IllegalArgumentException - if ProgressMonitor.isCancelled() returns true or,
possibly if started() has not been called or
finished() has been called.