Package snap.util
Class TaskMonitor.Text
java.lang.Object
snap.util.TaskMonitor.Text
- All Implemented Interfaces:
TaskMonitor
- Enclosing interface:
- TaskMonitor
A simple progress reporter printing on a stream.
-
Nested Class Summary
Nested classes/interfaces inherited from interface snap.util.TaskMonitor
TaskMonitor.Text
-
Field Summary
Fields inherited from interface snap.util.TaskMonitor
NULL
-
Constructor Summary
ConstructorDescriptionText
(PrintStream aPS) Initialize a new progress monitor.Initialize a new progress monitor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called to start task with total work.void
endTask()
Called to end task work count.boolean
Check for user task cancellation.void
startTasks
(int aTaskCount) Called to start monitor with number of tasks.void
updateTask
(int theWorkDone) Called to update task work count.
-
Constructor Details
-
Text
Initialize a new progress monitor. -
Text
Initialize a new progress monitor.
-
-
Method Details
-
startTasks
public void startTasks(int aTaskCount) Called to start monitor with number of tasks.- Specified by:
startTasks
in interfaceTaskMonitor
-
beginTask
Called to start task with total work.- Specified by:
beginTask
in interfaceTaskMonitor
-
updateTask
public void updateTask(int theWorkDone) Called to update task work count.- Specified by:
updateTask
in interfaceTaskMonitor
-
endTask
public void endTask()Called to end task work count.- Specified by:
endTask
in interfaceTaskMonitor
-
isCancelled
public boolean isCancelled()Check for user task cancellation.- Specified by:
isCancelled
in interfaceTaskMonitor
- Returns:
- true if the user asked the process to stop working.
-