analyzer.plot
Class ConstRange

java.lang.Object
  |
  +--analyzer.plot.ConstRange

public class ConstRange
extends java.lang.Object
implements Range

Implementation of Range for reading the X range off of an XYDataSource.


Field Summary
protected  double high
          The upper limit of the coordinate range.
protected  double low
          The lower limit of the coordinate range.
 
Constructor Summary
ConstRange(double low, double high)
          Constructor.
 
Method Summary
 double getHigh()
          Return the upper limit of the coordinate range.
 double getLow()
          Return the lower limit of the coordinate range.
 double length()
          Return the extent of the coordinate range, high-low.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

low

protected double low
The lower limit of the coordinate range.

high

protected double high
The upper limit of the coordinate range.
Constructor Detail

ConstRange

public ConstRange(double low,
                  double high)
Constructor.
Method Detail

getLow

public double getLow()
Return the lower limit of the coordinate range.
Specified by:
getLow in interface Range

getHigh

public double getHigh()
Return the upper limit of the coordinate range.
Specified by:
getHigh in interface Range

length

public double length()
Return the extent of the coordinate range, high-low.
Specified by:
length in interface Range


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