afreechart/src/main/java/org/afree/data/general/DatasetUtilities.java
/**
     * Returns the range of values in the range for the dataset.
     * 
     * @param dataset
     *            the dataset (<code>null</code> not permitted).
     * @param includeInterval
     *            a flag that determines whether or not the y-interval is taken
     *            into account.
     * 
     * @return The range (possibly <code>null</code>).
     */
Returns the range of values in the range for the dataset.

@param dataset
the dataset (null not permitted).
@param includeInterval
a flag that determines whether or not the y-interval is taken
into account.

@return The range (possibly null).
Returns the range of values in the range for the dataset . @param dataset the dataset ( null not permitted ) . @param includeInterval a flag that determines whether or not the y - interval is taken into account . @return The range ( possibly null ) .
public static Range findRangeBounds(CategoryDataset dataset,
            boolean includeInterval) {
        if (dataset == null) {
            throw new IllegalArgumentException("Null 'dataset' argument.");
        }
        Range result = null;
        if (dataset instanceof RangeInfo) {
            RangeInfo info = (RangeInfo) dataset;
            result = info.getRangeBounds(includeInterval);
        } else {
            result = iterateRangeBounds(dataset, includeInterval);
        }
        return result;
    }
public static Range findRangeBounds ( CategoryDataset dataset , boolean includeInterval ) { if ( dataset == null ) { throw new IllegalArgumentException ( "Null 'dataset' argument." ) ; } Range result = null ; if ( dataset instanceof RangeInfo ) { RangeInfo info = ( RangeInfo ) dataset ; result = info . getRangeBounds ( includeInterval ) ; } else { result = iterateRangeBounds ( dataset , includeInterval ) ; } return result ; }
Returns the range of values in the range for the dataset.
Returns the range of values in the range for the dataset .