afreechart/src/main/java/org/afree/chart/renderer/category/AbstractCategoryItemRenderer.java
/**
     * Returns the range of values the renderer requires to display all the
     * items from the specified dataset.
     * 
     * @param dataset
     *            the dataset (<code>null</code> permitted).
     * @param includeInterval
     *            include the y-interval if the dataset has one.
     * 
     * @return The range (<code>null</code> if the dataset is <code>null</code>
     *         or empty).
     * 
     * @since JFreeChart 1.0.13
     */
Returns the range of values the renderer requires to display all the
items from the specified dataset.

@param dataset
the dataset (null permitted).
@param includeInterval
include the y-interval if the dataset has one.

@return The range (null if the dataset is null
or empty).


Returns the range of values the renderer requires to display all the items from the specified dataset . @param dataset the dataset ( null permitted ) . @param includeInterval include the y - interval if the dataset has one . @return The range ( null if the dataset is null or empty ) .
protected Range findRangeBounds(CategoryDataset dataset,
            boolean includeInterval) {
        if (dataset == null) {
            return null;
        }
        if (getDataBoundsIncludesVisibleSeriesOnly()) {
            List visibleSeriesKeys = new ArrayList();
            int seriesCount = dataset.getRowCount();
            for (int s = 0; s < seriesCount; s++) {
                if (isSeriesVisible(s)) {
                    visibleSeriesKeys.add(dataset.getRowKey(s));
                }
            }
            return DatasetUtilities.findRangeBounds(dataset, visibleSeriesKeys,
                    includeInterval);
        } else {
            return DatasetUtilities.findRangeBounds(dataset, includeInterval);
        }
    }
protected Range findRangeBounds ( CategoryDataset dataset , boolean includeInterval ) { if ( dataset == null ) { return null ; } if ( getDataBoundsIncludesVisibleSeriesOnly ( ) ) { List visibleSeriesKeys = new ArrayList ( ) ; int seriesCount = dataset . getRowCount ( ) ; for ( int s = 0 ; s < seriesCount ; s ++ ) { if ( isSeriesVisible ( s ) ) { visibleSeriesKeys . add ( dataset . getRowKey ( s ) ) ; } } return DatasetUtilities . findRangeBounds ( dataset , visibleSeriesKeys , includeInterval ) ; } else { return DatasetUtilities . findRangeBounds ( dataset , includeInterval ) ; } }
Returns the range of values the renderer requires to display all the
 items from the specified dataset.
Returns the range of values the renderer requires to display all the items from the specified dataset .