@Test public void testBug2849731_2() { XYIntervalSeriesCollection d = new XYIntervalSeriesCollection(); XYIntervalSeries s = new XYIntervalSeries("S1"); s.add(1.0, Double.NaN, Double.NaN, Double.NaN, 1.5, Double.NaN); d.addSeries(s); Range r = DatasetUtilities.iterateDomainBounds(d); assertEquals(1.0, r.getLowerBound(), EPSILON); assertEquals(1.0, r.getUpperBound(), EPSILON); s.add(1.0, 1.5, Double.NaN, Double.NaN, 1.5, Double.NaN); r = DatasetUtilities.iterateDomainBounds(d); assertEquals(1.0, r.getLowerBound(), EPSILON); assertEquals(1.5, r.getUpperBound(), EPSILON); s.add(1.0, Double.NaN, 0.5, Double.NaN, 1.5, Double.NaN); r = DatasetUtilities.iterateDomainBounds(d); assertEquals(0.5, r.getLowerBound(), EPSILON); assertEquals(1.5, r.getUpperBound(), EPSILON); }
public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } private  DatasetUtilities(); }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } private  DatasetUtilities(); static double calculatePieDatasetTotal(PieDataset dataset); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    Comparable rowKey); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    int row); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       Comparable columnKey); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       int column); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent, int minItems); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, double[][] data); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, Number[][] data); static CategoryDataset createCategoryDataset(Comparable[] rowKeys,
            Comparable[] columnKeys, double[][] data); static CategoryDataset createCategoryDataset(Comparable rowKey,
                                                        KeyedValues rowData); static XYDataset sampleFunction2D(Function2D f, double start,
            double end, int samples, Comparable seriesKey); static XYSeries sampleFunction2DToSeries(Function2D f,
            double start, double end, int samples, Comparable seriesKey); static boolean isEmptyOrNull(PieDataset dataset); static boolean isEmptyOrNull(CategoryDataset dataset); static boolean isEmptyOrNull(XYDataset dataset); static Range findDomainBounds(XYDataset dataset); static Range findDomainBounds(XYDataset dataset,
                                         boolean includeInterval); static Range findDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateDomainBounds(XYDataset dataset); static Range iterateDomainBounds(XYDataset dataset,
                                            boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset); static Range findRangeBounds(CategoryDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range findRangeBounds(XYDataset dataset); static Range findRangeBounds(XYDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateRangeBounds(CategoryDataset dataset); static Range iterateRangeBounds(CategoryDataset dataset,
            boolean includeInterval); static Range iterateToFindRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateRangeBounds(XYDataset dataset); static Range iterateRangeBounds(XYDataset dataset,
            boolean includeInterval); static Range findZBounds(XYZDataset dataset); static Range findZBounds(XYZDataset dataset,
                                        boolean includeInterval); static Range findZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateZBounds(XYZDataset dataset); static Range iterateZBounds(XYZDataset dataset,
            boolean includeInterval); static Range iterateToFindDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateToFindRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateToFindZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Number findMinimumDomainValue(XYDataset dataset); static Number findMaximumDomainValue(XYDataset dataset); static Number findMinimumRangeValue(CategoryDataset dataset); static Number findMinimumRangeValue(XYDataset dataset); static Number findMaximumRangeValue(CategoryDataset dataset); static Number findMaximumRangeValue(XYDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset,
            double base); static Range findStackedRangeBounds(CategoryDataset dataset,
                                               KeyToGroupMap map); static Number findMinimumStackedRangeValue(CategoryDataset dataset); static Number findMaximumStackedRangeValue(CategoryDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset,
                                               double base); static double calculateStackTotal(TableXYDataset dataset, int item); static Range findCumulativeRangeBounds(CategoryDataset dataset); static double findYValue(XYDataset dataset, int series, double x); static int[] findItemIndicesForX(XYDataset dataset, int series,
            double x); }
DatasetUtilities { public static Range iterateDomainBounds(XYDataset dataset) { return iterateDomainBounds(dataset, true); } private  DatasetUtilities(); static double calculatePieDatasetTotal(PieDataset dataset); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    Comparable rowKey); static PieDataset createPieDatasetForRow(CategoryDataset dataset,
                                                    int row); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       Comparable columnKey); static PieDataset createPieDatasetForColumn(CategoryDataset dataset,
                                                       int column); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent); static PieDataset createConsolidatedPieDataset(PieDataset source,
            Comparable key, double minimumPercent, int minItems); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, double[][] data); static CategoryDataset createCategoryDataset(String rowKeyPrefix,
            String columnKeyPrefix, Number[][] data); static CategoryDataset createCategoryDataset(Comparable[] rowKeys,
            Comparable[] columnKeys, double[][] data); static CategoryDataset createCategoryDataset(Comparable rowKey,
                                                        KeyedValues rowData); static XYDataset sampleFunction2D(Function2D f, double start,
            double end, int samples, Comparable seriesKey); static XYSeries sampleFunction2DToSeries(Function2D f,
            double start, double end, int samples, Comparable seriesKey); static boolean isEmptyOrNull(PieDataset dataset); static boolean isEmptyOrNull(CategoryDataset dataset); static boolean isEmptyOrNull(XYDataset dataset); static Range findDomainBounds(XYDataset dataset); static Range findDomainBounds(XYDataset dataset,
                                         boolean includeInterval); static Range findDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateDomainBounds(XYDataset dataset); static Range iterateDomainBounds(XYDataset dataset,
                                            boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset); static Range findRangeBounds(CategoryDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range findRangeBounds(XYDataset dataset); static Range findRangeBounds(XYDataset dataset,
                                        boolean includeInterval); static Range findRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateRangeBounds(CategoryDataset dataset); static Range iterateRangeBounds(CategoryDataset dataset,
            boolean includeInterval); static Range iterateToFindRangeBounds(CategoryDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateRangeBounds(XYDataset dataset); static Range iterateRangeBounds(XYDataset dataset,
            boolean includeInterval); static Range findZBounds(XYZDataset dataset); static Range findZBounds(XYZDataset dataset,
                                        boolean includeInterval); static Range findZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateZBounds(XYZDataset dataset); static Range iterateZBounds(XYZDataset dataset,
            boolean includeInterval); static Range iterateToFindDomainBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, boolean includeInterval); static Range iterateToFindRangeBounds(XYDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Range iterateToFindZBounds(XYZDataset dataset,
            List<Comparable> visibleSeriesKeys, Range xRange, boolean includeInterval); static Number findMinimumDomainValue(XYDataset dataset); static Number findMaximumDomainValue(XYDataset dataset); static Number findMinimumRangeValue(CategoryDataset dataset); static Number findMinimumRangeValue(XYDataset dataset); static Number findMaximumRangeValue(CategoryDataset dataset); static Number findMaximumRangeValue(XYDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset); static Range findStackedRangeBounds(CategoryDataset dataset,
            double base); static Range findStackedRangeBounds(CategoryDataset dataset,
                                               KeyToGroupMap map); static Number findMinimumStackedRangeValue(CategoryDataset dataset); static Number findMaximumStackedRangeValue(CategoryDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset); static Range findStackedRangeBounds(TableXYDataset dataset,
                                               double base); static double calculateStackTotal(TableXYDataset dataset, int item); static Range findCumulativeRangeBounds(CategoryDataset dataset); static double findYValue(XYDataset dataset, int series, double x); static int[] findItemIndicesForX(XYDataset dataset, int series,
            double x);  }