org.jscience.util
Class MonitorDelegator

java.lang.Object
  extended by org.jscience.util.Monitor
      extended by org.jscience.util.MonitorDelegator

public class MonitorDelegator
extends Monitor

The relevant calls to the monitor are delegated to a ProgressMonitor or JProgressBar.


Field Summary
 
Fields inherited from class org.jscience.util.Monitor
test, timer
 
Constructor Summary
MonitorDelegator()
          Creates a new MonitorDelegator object.
MonitorDelegator(javax.swing.JProgressBar bar)
          Creates a new MonitorDelegator object.
MonitorDelegator(javax.swing.ProgressMonitor mon)
          Creates a new MonitorDelegator object.
 
Method Summary
 boolean disabled()
          DOCUMENT ME!
 void done()
          DOCUMENT ME!
 boolean enabled()
          DOCUMENT ME!
 javax.swing.JProgressBar getJProgressBar()
          DOCUMENT ME!
 javax.swing.ProgressMonitor getProgressMonitor()
          DOCUMENT ME!
 void increment()
          DOCUMENT ME!
 void setJProgressBar(javax.swing.JProgressBar bar)
          DOCUMENT ME!
 void setMax(int number)
          DOCUMENT ME!
 void setMessage(java.lang.String msg)
          DOCUMENT ME!
 void setMin(int number)
          DOCUMENT ME!
 void setNumber(int number)
          DOCUMENT ME!
 void setProgressMonitor(javax.swing.ProgressMonitor mon)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.util.Monitor
disable, disableLater, enable, getMax, getMessage, getMin, getNumber, getNumber, getObject, getObject, getSize, getTask, getTimer, increment, isDone, reInitialize, runTask, setNumber, setObject, setObject, setTask, test, test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitorDelegator

public MonitorDelegator()
Creates a new MonitorDelegator object.


MonitorDelegator

public MonitorDelegator(javax.swing.ProgressMonitor mon)
Creates a new MonitorDelegator object.

Parameters:
mon - DOCUMENT ME!

MonitorDelegator

public MonitorDelegator(javax.swing.JProgressBar bar)
Creates a new MonitorDelegator object.

Parameters:
bar - DOCUMENT ME!
Method Detail

getProgressMonitor

public javax.swing.ProgressMonitor getProgressMonitor()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getJProgressBar

public javax.swing.JProgressBar getJProgressBar()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setProgressMonitor

public void setProgressMonitor(javax.swing.ProgressMonitor mon)
DOCUMENT ME!

Parameters:
mon - DOCUMENT ME!

setJProgressBar

public void setJProgressBar(javax.swing.JProgressBar bar)
DOCUMENT ME!

Parameters:
bar - DOCUMENT ME!

setNumber

public void setNumber(int number)
DOCUMENT ME!

Overrides:
setNumber in class Monitor
Parameters:
number - DOCUMENT ME!

increment

public void increment()
DOCUMENT ME!

Overrides:
increment in class Monitor

setMessage

public void setMessage(java.lang.String msg)
DOCUMENT ME!

Overrides:
setMessage in class Monitor
Parameters:
msg - DOCUMENT ME!

setMin

public void setMin(int number)
DOCUMENT ME!

Overrides:
setMin in class Monitor
Parameters:
number - DOCUMENT ME!

done

public void done()
DOCUMENT ME!

Overrides:
done in class Monitor

enabled

public boolean enabled()
DOCUMENT ME!

Overrides:
enabled in class Monitor
Returns:
DOCUMENT ME!

disabled

public boolean disabled()
DOCUMENT ME!

Overrides:
disabled in class Monitor
Returns:
DOCUMENT ME!

setMax

public void setMax(int number)
DOCUMENT ME!

Overrides:
setMax in class Monitor
Parameters:
number - DOCUMENT ME!