Fairness.Graphing
Class GraphBounds

java.lang.Object
  extended by Fairness.Graphing.GraphBounds

public class GraphBounds
extends java.lang.Object

GraphBounds provides a rectangular bounded region over the data in the Graph's series.


Constructor Summary
GraphBounds(double xLeft, double xRight, double yBottom, double yTop)
          Constructs a new GraphBounds.
 
Method Summary
static GraphBounds calculateBounds(java.util.Collection<? extends edu.rit.numeric.XYSeries> data)
          Calculates a GraphBounds based on the extents of the x and y values found in all of the given data series.
 double getXLeft()
           
 double getXRight()
           
 double getYBottom()
           
 double getYTop()
           
 void setXLeft(double xLeft)
           
 void setXRight(double xRight)
           
 void setYBottom(double yBottom)
           
 void setYTop(double yTop)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphBounds

public GraphBounds(double xLeft,
                   double xRight,
                   double yBottom,
                   double yTop)
Constructs a new GraphBounds.

Parameters:
xLeft - min for x axis
xRight - max for x axis
yBottom - min for y axis
yTop - max for y axis
Method Detail

calculateBounds

public static GraphBounds calculateBounds(java.util.Collection<? extends edu.rit.numeric.XYSeries> data)
Calculates a GraphBounds based on the extents of the x and y values found in all of the given data series.

Parameters:
data - non-null Collection of 1 or more non-null XYSeries
Returns:
non-null GraphBounds providing the extents

getXLeft

public double getXLeft()

getXRight

public double getXRight()

getYBottom

public double getYBottom()

getYTop

public double getYTop()

setXLeft

public void setXLeft(double xLeft)

setXRight

public void setXRight(double xRight)

setYBottom

public void setYBottom(double yBottom)

setYTop

public void setYTop(double yTop)