analyzer.util
Class DoubleWindowModel

java.lang.Object
  |
  +--analyzer.util.DoubleWindowModel

public class DoubleWindowModel
extends java.lang.Object

Model for storing a range low, high, with constraints. Require that high - low is greater than or equal the window size width. Also constrains with an min and max.


Field Summary
protected  double high
           
protected  javax.swing.event.EventListenerList listenerList
           
protected  double low
           
protected  double max
           
protected  double min
           
protected  double width
           
 
Constructor Summary
DoubleWindowModel(double min, double max, double width)
           
 
Method Summary
 void addListener(DataListener e)
           
protected  void fireListeners()
           
 double getHigh()
          Return the upper limit of the current range.
 double getLow()
          Return the lower limit of the current range.
 void setHigh(double hi)
          Attempt to change the upper value.
 void setLow(double lo)
          Attempt to change the lower value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

low

protected double low

high

protected double high

min

protected double min

max

protected double max

width

protected double width

listenerList

protected javax.swing.event.EventListenerList listenerList
Constructor Detail

DoubleWindowModel

public DoubleWindowModel(double min,
                         double max,
                         double width)
Method Detail

getLow

public double getLow()
Return the lower limit of the current range.

getHigh

public double getHigh()
Return the upper limit of the current range.

setLow

public void setLow(double lo)
Attempt to change the lower value.

setHigh

public void setHigh(double hi)
Attempt to change the upper value.

addListener

public void addListener(DataListener e)

fireListeners

protected void fireListeners()


Email questions and comments to
shumway@uiuc.edu or nzhong@ncsa.uiuc.edu