protected Range findDomainBounds(XYDataset dataset,boolean includeInterval){
  if (dataset == null) {
    return null;
  }
  if (getDataBoundsIncludesVisibleSeriesOnly()) {
    List visibleSeriesKeys=new ArrayList();
    int seriesCount=dataset.getSeriesCount();
    for (int s=0; s < seriesCount; s++) {
      if (isSeriesVisible(s)) {
        visibleSeriesKeys.add(dataset.getSeriesKey(s));
      }
    }
    return DatasetUtilities.findDomainBounds(dataset,visibleSeriesKeys,includeInterval);
  }
  return DatasetUtilities.findDomainBounds(dataset,includeInterval);
}

protected Range findDomainBounds ( XYDataset dataset , boolean includeInterval ) { if ( dataset == null ) { return null ; } if ( getDataBoundsIncludesVisibleSeriesOnly ( ) ) { List visibleSeriesKeys = new ArrayList ( ) ; int seriesCount = dataset . getSeriesCount ( ) ; for ( int s = 0 ; s < seriesCount ; s ++ ) { if ( isSeriesVisible ( s ) ) { visibleSeriesKeys . add ( dataset . getSeriesKey ( s ) ) ; } } return DatasetUtilities . findDomainBounds ( dataset , visibleSeriesKeys , includeInterval ) ; } return DatasetUtilities . findDomainBounds ( dataset , includeInterval ) ; }
returns the lower and upper bounds ( range ) of the x - values in the specified dataset .
