Package snap.util

Class TaskMonitor.Text

java.lang.Object
snap.util.TaskMonitor.Text
All Implemented Interfaces:
TaskMonitor
Enclosing interface:
TaskMonitor

public static class TaskMonitor.Text extends Object implements TaskMonitor
A simple progress reporter printing on a stream.
  • Constructor Details

    • Text

      public Text(PrintStream aPS)
      Initialize a new progress monitor.
    • Text

      public Text(Writer out)
      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 interface TaskMonitor
    • beginTask

      public void beginTask(String aTitle, int theTotalWork)
      Called to start task with total work.
      Specified by:
      beginTask in interface TaskMonitor
    • updateTask

      public void updateTask(int theWorkDone)
      Called to update task work count.
      Specified by:
      updateTask in interface TaskMonitor
    • endTask

      public void endTask()
      Called to end task work count.
      Specified by:
      endTask in interface TaskMonitor
    • isCancelled

      public boolean isCancelled()
      Check for user task cancellation.
      Specified by:
      isCancelled in interface TaskMonitor
      Returns:
      true if the user asked the process to stop working.