-
- All Known Implementing Classes:
CategoryTableXYDataset,DefaultTableXYDataset,DynamicTimeSeriesCollection,IntervalXYDelegate,TimePeriodValuesCollection,TimeSeriesCollection,TimeTableXYDataset,XYSeriesCollection
public interface DomainInfo
An interface (optional) that can be implemented by a dataset to assist in determining the minimum and maximum values. If not present,DatasetUtilswill iterate over all the values in the dataset to get the bounds.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RangegetDomainBounds(boolean includeInterval)Returns the range of the values in this dataset's domain.doublegetDomainLowerBound(boolean includeInterval)Returns the minimum x-value in the dataset.doublegetDomainUpperBound(boolean includeInterval)Returns the maximum x-value in the dataset.
-
-
-
Method Detail
-
getDomainLowerBound
double getDomainLowerBound(boolean includeInterval)
Returns the minimum x-value in the dataset.- Parameters:
includeInterval- a flag that determines whether or not the x-interval is taken into account.- Returns:
- The minimum value or
Double.NaNif there are no values.
-
getDomainUpperBound
double getDomainUpperBound(boolean includeInterval)
Returns the maximum x-value in the dataset.- Parameters:
includeInterval- a flag that determines whether or not the x-interval is taken into account.- Returns:
- The maximum value or
Double.NaNif there are no values.
-
getDomainBounds
Range getDomainBounds(boolean includeInterval)
Returns the range of the values in this dataset's domain.- Parameters:
includeInterval- a flag that determines whether or not the x-interval is taken into account.- Returns:
- The range (or
nullif the dataset contains no values).
-
-