Fairness.Graphing
Class GraphBounds
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphBounds
public GraphBounds(double xLeft,
double xRight,
double yBottom,
double yTop)
- Constructs a new GraphBounds.
- Parameters:
xLeft
- min for x axisxRight
- max for x axisyBottom
- min for y axisyTop
- max for y axis
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)