mckay.utilities.gui.progressbars
Class DoubleProgressBarTaskCoordinator

java.lang.Object
  extended by mckay.utilities.gui.progressbars.DoubleProgressBarTaskMonitor
      extended by mckay.utilities.gui.progressbars.DoubleProgressBarTaskCoordinator

public class DoubleProgressBarTaskCoordinator
extends DoubleProgressBarTaskMonitor

Monitors, updates and coordinates a DoubleProgressBarDialog progress bar and oversees processing. An error message is generated if a problem occurs during processing. Tasks may be cancelled.


Field Summary
 
Fields inherited from class mckay.utilities.gui.progressbars.DoubleProgressBarTaskMonitor
bottom_current_amount_completed, bottom_length_of_task, bottom_progress_message, bottom_time_started, new_bottom_task_started, new_top_task_started, overall_end_time, overall_start_time, sub_task_durations, sub_task_index, sub_task_names, task_canceled, task_completed, top_current_amount_completed, top_length_of_task, top_progress_message, top_time_started
 
Constructor Summary
DoubleProgressBarTaskCoordinator(ProcessCoordinator coordinator)
          Prepares the processor that will perform processing.
 
Method Summary
 void go()
          Begin processing with the progress bar.
 void setProgressBarDialog(DoubleProgressBarDialog progress_dialog)
          Store the progress bar whose data this object will monitor.
 
Methods inherited from class mckay.utilities.gui.progressbars.DoubleProgressBarTaskMonitor
findTimeWithProperUnits, getBottomCurrentAmountCompleted, getBottomLengthOfTask, getBottomTextMessage, getProcessingTimeLogs, getTopCurrentAmountCompleted, getTopLengthOfTask, getTopTextMessage, initializeOverallTask, isCancelled, isDone, markTaskComplete, setSubTaskProgressValue, startNewBottomProgress, startNewSubTask, startNewTopProgress, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleProgressBarTaskCoordinator

public DoubleProgressBarTaskCoordinator(ProcessCoordinator coordinator)
Prepares the processor that will perform processing.

Parameters:
coordinator - The object that will perform actual processing.
Method Detail

go

public void go()
Begin processing with the progress bar.

Specified by:
go in class DoubleProgressBarTaskMonitor

setProgressBarDialog

public void setProgressBarDialog(DoubleProgressBarDialog progress_dialog)
Store the progress bar whose data this object will monitor.

Parameters:
progress_dialog - The prgress dialog that is being monitored.