org.jfree.chart.renderer
Class RendererUtilities
java.lang.Object
org.jfree.chart.renderer.RendererUtilities
Utility methods related to the rendering process.
static int[] | findLiveItems(XYDataset dataset, int series, double xLow, double xHigh) - Finds a range of item indices that is guaranteed to contain all the
x-values from x0 to x1 (inclusive).
|
static int | findLiveItemsLowerBound(XYDataset dataset, int series, double xLow, double xHigh) - Finds the lower index of the range of live items in the specified data
series.
|
static int | findLiveItemsUpperBound(XYDataset dataset, int series, double xLow, double xHigh) - Finds the index of the item in the specified series that...
|
findLiveItems
public static int[] findLiveItems(XYDataset dataset,
int series,
double xLow,
double xHigh)
Finds a range of item indices that is guaranteed to contain all the
x-values from x0 to x1 (inclusive).
dataset
- the dataset (null
not permitted).series
- the series index.xLow
- the lower bound of the x-value range.xHigh
- the upper bound of the x-value range.
- The indices of the boundary items.
findLiveItemsLowerBound
public static int findLiveItemsLowerBound(XYDataset dataset,
int series,
double xLow,
double xHigh)
Finds the lower index of the range of live items in the specified data
series.
dataset
- the dataset (null
not permitted).series
- the series index.xLow
- the lowest x-value in the live range.xHigh
- the highest x-value in the live range.
- The index of the required item.
findLiveItemsUpperBound
public static int findLiveItemsUpperBound(XYDataset dataset,
int series,
double xLow,
double xHigh)
Finds the index of the item in the specified series that...
dataset
- the dataset (null
not permitted).series
- the series index.xLow
- the lowest x-value in the live range.xHigh
- the highest x-value in the live range.
- The index of the required item.