/** * Returns the range of values in the range for the dataset. * * @param dataset the dataset ({@code null} not permitted). * * @return The range (possibly {@code null}). */ public static Range findRangeBounds(CategoryDataset dataset) { return findRangeBounds(dataset, true); }
/** * Returns the range of values in the range for the dataset. This method * is the partner for the {@link #findDomainBounds(XYDataset)} method. * * @param dataset the dataset ({@code null} not permitted). * * @return The range (possibly {@code null}). */ public static Range findRangeBounds(XYDataset dataset) { return findRangeBounds(dataset, true); }
/** * Returns the range of values the renderer requires to display all the * items from the specified dataset. * * @param dataset the dataset ({@code null} permitted). * * @return The range ({@code null} if the dataset is {@code null} * or empty). */ @Override public Range findRangeBounds(XYDataset dataset) { if (dataset != null) { return DatasetUtils.findRangeBounds(dataset, true); } else { return null; } }
/** * Returns the range for the specified axis. * * @param axis the axis. * * @return The range. */ @Override public Range getDataRange(ValueAxis axis) { Range result = null; int axisIdx = getAxisIndex(axis); List mappedDatasets = new ArrayList(); if (axisIdx >= 0) { mappedDatasets = getDatasetsMappedToAxis(new Integer(axisIdx)); } // iterate through the datasets that map to the axis and get the union // of the ranges. Iterator iterator = mappedDatasets.iterator(); int datasetIdx = -1; while (iterator.hasNext()) { datasetIdx++; XYDataset d = (XYDataset) iterator.next(); if (d != null) { // FIXME better ask the renderer instead of DatasetUtilities result = Range.combine(result, DatasetUtils.findRangeBounds(d)); } } return result; }
return DatasetUtils.findRangeBounds(dataset, visibleSeriesKeys, includeInterval); return DatasetUtils.findRangeBounds(dataset, includeInterval);
/** * Returns the range of values the renderer requires to display all the * items from the specified dataset. * * @param dataset the dataset ({@code null} permitted). * * @return The range ({@code null} if the dataset is {@code null} * or empty). */ @Override public Range findRangeBounds(XYDataset dataset) { if (dataset == null) { return null; } Range r = DatasetUtils.findRangeBounds(dataset, false); if (r == null) { return null; } double offset = 0; // TODO getSeriesShape(n).getBounds().height / 2; return new Range(r.getLowerBound() + offset, r.getUpperBound() + offset); }
/** * Returns the range of values the renderer requires to display all the * items from the specified dataset. * * @param dataset the dataset ({@code null} permitted). * * @return The range ({@code null} if the dataset is {@code null} * or empty). * * @see #findDomainBounds(XYDataset) */ @Override public Range findRangeBounds(XYDataset dataset) { if (dataset != null) { Range r = DatasetUtils.findRangeBounds(dataset, false); if (r == null) { return null; } else { return new Range(r.getLowerBound() + this.yOffset, r.getUpperBound() + this.blockHeight + this.yOffset); } } else { return null; } }
DatasetUtils.findRangeBounds(d));
Double.POSITIVE_INFINITY); return DatasetUtils.findRangeBounds(dataset, visibleSeriesKeys, xRange, includeInterval); return DatasetUtils.findRangeBounds(dataset, includeInterval);