org.das2.system
Class DefaultMonitorFactory

java.lang.Object
  extended by org.das2.system.DefaultMonitorFactory
All Implemented Interfaces:
MonitorFactory

public class DefaultMonitorFactory
extends java.lang.Object
implements MonitorFactory


Nested Class Summary
 class DefaultMonitorFactory.MonitorEntry
           
 
Constructor Summary
DefaultMonitorFactory()
           
 
Method Summary
 ProgressMonitor getMonitor(DasCanvasComponent context, java.lang.String label, java.lang.String description)
          returns a monitor in the given context.
 ProgressMonitor getMonitor(DasCanvas canvas, java.lang.String label, java.lang.String description)
           
 ProgressMonitor getMonitor(java.lang.String label, java.lang.String description)
          returns a monitor without regard to context.
 DefaultMonitorFactory.MonitorEntry[] getMonitors()
           
 DefaultMonitorFactory.MonitorEntry getMonitors(int i)
           
 boolean isClear()
           
 void setClear(boolean clear)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMonitorFactory

public DefaultMonitorFactory()
Method Detail

getMonitor

public ProgressMonitor getMonitor(DasCanvas canvas,
                                  java.lang.String label,
                                  java.lang.String description)
Specified by:
getMonitor in interface MonitorFactory

getMonitor

public ProgressMonitor getMonitor(DasCanvasComponent context,
                                  java.lang.String label,
                                  java.lang.String description)
Description copied from interface: MonitorFactory
returns a monitor in the given context. For example, if the user is waiting for a DasPlot to be drawn, then the context is the plot, and therefore a DasProgressPanel will be added on top of the plot.

Specified by:
getMonitor in interface MonitorFactory

getMonitor

public ProgressMonitor getMonitor(java.lang.String label,
                                  java.lang.String description)
Description copied from interface: MonitorFactory
returns a monitor without regard to context.

Specified by:
getMonitor in interface MonitorFactory

getMonitors

public DefaultMonitorFactory.MonitorEntry[] getMonitors()

getMonitors

public DefaultMonitorFactory.MonitorEntry getMonitors(int i)

setClear

public void setClear(boolean clear)

isClear

public boolean isClear()