public class SeriesUtils extends Object
Constructor and Description |
---|
SeriesUtils() |
Modifier and Type | Method and Description |
---|---|
protected static Region |
getNullRegion(XYSeries series,
int index)
Determine the minMax iVals of the xVals surrounding a range of one or more null values.
|
static OrderedXYSeries.XOrder |
getXYOrder(XYSeries series)
Determine the XVal order of an XYSeries.
|
static Region |
iBounds(XYSeries series,
RectRegion visibleBounds)
Compute the range of visible i-vals in the specified series.
|
protected static int |
iBoundsMax(XYSeries series,
double visibleMax,
float step)
TODO: This is a poor alternative to a true binary search implementation.
|
protected static int |
iBoundsMin(XYSeries series,
double visibleMin,
float step)
TODO: This is a poor alternative to a true binary search implementation.
|
static void |
main(String[] args) |
static Region |
minMax(List<Number>... lists) |
static RectRegion |
minMax(List<XYSeries> seriesList) |
static Region |
minMax(Region bounds,
List<Number>... lists) |
static RectRegion |
minMax(XYConstraints constraints,
List<XYSeries> seriesList) |
static RectRegion |
minMax(XYConstraints constraints,
XYSeries... seriesArray) |
static RectRegion |
minMax(XYSeries... seriesList) |
static Region |
minMaxX(XYSeries... seriesList) |
static Region |
minMaxY(XYSeries... seriesList) |
public static RectRegion minMax(List<XYSeries> seriesList)
public static RectRegion minMax(XYSeries... seriesList)
public static RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList)
constraints
- may be null.seriesList
- public static RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray)
constraints
- May be null.seriesArray
- public static Region minMax(Region bounds, List<Number>... lists)
bounds
- Starting minMax values to work from; only lists values that are greater than or less
than those in bounds will be be used.lists
- lists to be evaluated for min/max values.public static Region iBounds(XYSeries series, RectRegion visibleBounds)
series
- visibleBounds
- The visible constraints of the plotprotected static int iBoundsMax(XYSeries series, double visibleMax, float step)
series
- visibleMax
- step
- protected static int iBoundsMin(XYSeries series, double visibleMin, float step)
series
- visibleMin
- step
- protected static Region getNullRegion(XYSeries series, int index)
series
- index
- index of the null value in questionpublic static void main(String[] args)
public static OrderedXYSeries.XOrder getXYOrder(XYSeries series)
OrderedXYSeries
then OrderedXYSeries.XOrder.NONE
is assumed.series
- OrderedXYSeries.XOrder
of the series.