@Test public void minMax_onSimpleXYSeries_calculatesExpectedRegion() { SimpleXYSeries series = new SimpleXYSeries(LINEAR, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, null); RectRegion minMax = SeriesUtils.minMax(series); assertEquals(0, minMax.getMinX().doubleValue(), 0); assertEquals(7, minMax.getMaxX().doubleValue(), 0); assertEquals(1, minMax.getMinY().doubleValue(), 0); assertEquals(8, minMax.getMaxY().doubleValue(), 0); series = new SimpleXYSeries(LINEAR_INVERSE, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, null); minMax = SeriesUtils.minMax(series); assertEquals(0, minMax.getMinX().doubleValue(), 0); assertEquals(7, minMax.getMaxX().doubleValue(), 0); assertEquals(1, minMax.getMinY().doubleValue(), 0); assertEquals(8, minMax.getMaxY().doubleValue(), 0); series = new SimpleXYSeries(ZIG_ZAG, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, null); minMax = SeriesUtils.minMax(series); assertEquals(0, minMax.getMinX().doubleValue(), 0); assertEquals(7, minMax.getMaxX().doubleValue(), 0); assertEquals(1, minMax.getMinY().doubleValue(), 0); assertEquals(10, minMax.getMaxY().doubleValue(), 0); series = new SimpleXYSeries(NULLS, NULLS, null); minMax = SeriesUtils.minMax(series); assertEquals(-1, minMax.getMinX().doubleValue(), 0); assertEquals(4, minMax.getMaxX().doubleValue(), 0); assertEquals(-1, minMax.getMinY().doubleValue(), 0); assertEquals(4, minMax.getMaxY().doubleValue(), 0); series = new SimpleXYSeries(SINGLE_VALUE, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, null); minMax = SeriesUtils.minMax(series); assertEquals(0, minMax.getMinX().doubleValue(), 0); assertEquals(0, minMax.getMaxX().doubleValue(), 0); assertEquals(3, minMax.getMinY().doubleValue(), 0); assertEquals(3, minMax.getMaxY().doubleValue(), 0); series = new SimpleXYSeries(SINGLE_VALUE_NULL, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, null); minMax = SeriesUtils.minMax(series); assertEquals(0, minMax.getMinX().doubleValue(), 0); assertEquals(0, minMax.getMaxX().doubleValue(), 0); assertEquals(null, minMax.getMinY()); assertEquals(null, minMax.getMaxY()); series = new SimpleXYSeries(EMPTY, SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, null); minMax = SeriesUtils.minMax(series); assertEquals(null, minMax.getMinX()); assertEquals(null, minMax.getMaxX()); assertEquals(null, minMax.getMinY()); assertEquals(null, minMax.getMaxY()); }
public static RectRegion minMax(List<XYSeries> seriesList) { return minMax(null, seriesList); }
SeriesUtils { public static RectRegion minMax(List<XYSeries> seriesList) { return minMax(null, seriesList); } }
SeriesUtils { public static RectRegion minMax(List<XYSeries> seriesList) { return minMax(null, seriesList); }  }
SeriesUtils { public static RectRegion minMax(List<XYSeries> seriesList) { return minMax(null, seriesList); }  static RectRegion minMax(List<XYSeries> seriesList); static RectRegion minMax(XYSeries... seriesList); static Region minMaxX(XYSeries... seriesList); static Region minMaxY(XYSeries... seriesList); static RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList); static RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray); static Region minMax(Region bounds, List<Number>... lists); static Region iBounds(XYSeries series, RectRegion visibleBounds); static Region minMax(List<Number>... lists); static OrderedXYSeries.XOrder getXYOrder(XYSeries series); }
SeriesUtils { public static RectRegion minMax(List<XYSeries> seriesList) { return minMax(null, seriesList); }  static RectRegion minMax(List<XYSeries> seriesList); static RectRegion minMax(XYSeries... seriesList); static Region minMaxX(XYSeries... seriesList); static Region minMaxY(XYSeries... seriesList); static RectRegion minMax(XYConstraints constraints, List<XYSeries> seriesList); static RectRegion minMax(XYConstraints constraints, XYSeries... seriesArray); static Region minMax(Region bounds, List<Number>... lists); static Region iBounds(XYSeries series, RectRegion visibleBounds); static Region minMax(List<Number>... lists); static OrderedXYSeries.XOrder getXYOrder(XYSeries series);  }