analyzer.plot
Class CoordRange

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

public class CoordRange
extends java.lang.Object
implements java.lang.Cloneable

Class for storing a two-dimensional coordinate range, given by two Range objects.


Field Summary
protected  Range xRange
          The x coordinate range
protected  Range yRange
          The y coordinate range
 
Constructor Summary
CoordRange()
          Constructor defaults to (0,0) to (1,1).
CoordRange(double xmin, double ymin, double xmax, double ymax)
          Constructor.
CoordRange(Range xRange, Range yRange)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 double getXMax()
          Return the maximum x value.
 double getXMin()
          Return the minimum x value.
 double getYMax()
          Return the maximum y value.
 double getYMin()
          Return the minimum y value.
 double height()
          Return the height of the coordinate range.
 double width()
          Return the width of the coordinate range.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xRange

protected Range xRange
The x coordinate range

yRange

protected Range yRange
The y coordinate range
Constructor Detail

CoordRange

public CoordRange()
Constructor defaults to (0,0) to (1,1).

CoordRange

public CoordRange(Range xRange,
                  Range yRange)
Constructor.

CoordRange

public CoordRange(double xmin,
                  double ymin,
                  double xmax,
                  double ymax)
Constructor.
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

width

public double width()
Return the width of the coordinate range.

height

public double height()
Return the height of the coordinate range.

getXMin

public double getXMin()
Return the minimum x value.

getYMin

public double getYMin()
Return the minimum y value.

getXMax

public double getXMax()
Return the maximum x value.

getYMax

public double getYMax()
Return the maximum y value.


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