Package org.jfree.data
Interface DomainInfo
- 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,
DatasetUtils will iterate over all the
values in the dataset to get the bounds.-
Method Summary
Modifier and TypeMethodDescriptiongetDomainBounds(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 Details
-
getDomainLowerBound
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
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
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).
-