analyzer.plot
Class AutoYRange

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

public class AutoYRange
extends java.lang.Object
implements Range

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


Field Summary
protected  double pad
          The amount of padding.
protected  XYDataSource source
          The XYDataSource to query for current range.
 
Constructor Summary
AutoYRange(XYDataSource source)
          Constructor.
AutoYRange(XYDataSource source, double pad)
          Constructor that asks for additional padding.
 
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

source

protected XYDataSource source
The XYDataSource to query for current range.

pad

protected double pad
The amount of padding.
Constructor Detail

AutoYRange

public AutoYRange(XYDataSource source)
Constructor.

AutoYRange

public AutoYRange(XYDataSource source,
                  double pad)
Constructor that asks for additional padding.
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