org.das2.components
Class BatchMaster

java.lang.Object
  extended by org.das2.components.BatchMaster

public class BatchMaster
extends java.lang.Object

BatchMaster is a object that runs through a batch file, controlling a time axis to produce a series of images.


Nested Class Summary
static class BatchMaster.Timer
           
 
Field Summary
static BatchMaster.Timer timer
           
 
Constructor Summary
BatchMaster(DasCanvas canvas)
          Creates a new instance of BatchMaster
 
Method Summary
 void addDataRangeSelectionListener(DataRangeSelectionListener listener)
          Registers DataRangeSelectionListener to receive events.
static BatchMaster createPngs(DasCanvas canvas, java.io.File specFile, java.lang.String pngFilenameTemplate)
           
 org.das2.components.BatchMaster.TaskOutputDescriptor createPngsTaskOutputDescriptor(java.lang.String pngFilenameTemplate)
           
 void removeDataRangeSelectionListener(DataRangeSelectionListener listener)
          Removes DataRangeSelectionListener from the list of listeners.
 void start()
          Starts the batch process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

public static BatchMaster.Timer timer
Constructor Detail

BatchMaster

public BatchMaster(DasCanvas canvas)
Creates a new instance of BatchMaster

Method Detail

createPngsTaskOutputDescriptor

public org.das2.components.BatchMaster.TaskOutputDescriptor createPngsTaskOutputDescriptor(java.lang.String pngFilenameTemplate)
Parameters:
pngFilenameTemplate - BEGIN,END,RANGE substituted to form name
Returns:
TaskOutputDescriptor describing the task.

createPngs

public static BatchMaster createPngs(DasCanvas canvas,
                                     java.io.File specFile,
                                     java.lang.String pngFilenameTemplate)
                              throws java.text.ParseException,
                                     java.io.IOException
Parameters:
canvas -
specFile - flat text file containing one parsable time range per line. (For example, "1990-01-01T00:00 1990-01-02T00:00" or "1990-01-01")
pngFilenameTemplate - (For example, "BEGIN_END.png")
Returns:
BatchMaster object.
Throws:
java.text.ParseException
java.io.IOException

start

public void start()
Starts the batch process.


addDataRangeSelectionListener

public void addDataRangeSelectionListener(DataRangeSelectionListener listener)
Registers DataRangeSelectionListener to receive events.

Parameters:
listener - The listener to register.

removeDataRangeSelectionListener

public void removeDataRangeSelectionListener(DataRangeSelectionListener listener)
Removes DataRangeSelectionListener from the list of listeners.

Parameters:
listener - The listener to remove.