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 .
