public class BoundedRangeIntervalXYDatasetDecorator extends IntervalXYDatasetDecorator
IntervalXYDataset
instance's
getYValue(int,
int)
method to return the Y value of the decorated instance iff (1) the Y
value is greater than or equal to the injected Y axis lower bound and (2) the
Y value is less than or equal to the injected Y axis upper bound. If the Y
value is less than the Y axis lower bound, then the lower bound is returned.
If the Y value is greater than the Y axis upper bound, then the upper bound
is returned.Constructor and Description |
---|
BoundedRangeIntervalXYDatasetDecorator(org.jfree.data.xy.IntervalXYDataset datasetToBeDecorated,
double lowerBound,
double upperBound)
Use this constructor to inject the dataset to be decorated along with the
bounds for the range.
|
Modifier and Type | Method and Description |
---|---|
double |
getYValue(int arg0,
int arg1) |
addChangeListener, getDomainOrder, getEndX, getEndXValue, getEndY, getEndYValue, getGroup, getItemCount, getSeriesCount, getSeriesKey, getStartX, getStartXValue, getStartY, getStartYValue, getX, getXValue, getY, indexOf, removeChangeListener, setGroup
public BoundedRangeIntervalXYDatasetDecorator(org.jfree.data.xy.IntervalXYDataset datasetToBeDecorated, double lowerBound, double upperBound) throws java.lang.AssertionError, java.lang.NullPointerException
datasetToBeDecorated
- The IntervalXYDataset
instance to decorate.lowerBound
- The Y axis lower bound to enforce.upperBound
- The Y axis upper bound to enforce.java.lang.AssertionError
- When the lower bound is greater than the upper bound.java.lang.NullPointerException
- When datasetToBeDecorated is null.public double getYValue(int arg0, int arg1)
getYValue
in interface org.jfree.data.xy.XYDataset
getYValue
in class IntervalXYDatasetDecorator