java.lang.Object | |||||
↳ | org.jfree.data.general.AbstractDataset | ||||
↳ | org.jfree.data.general.AbstractSeriesDataset | ||||
↳ | org.jfree.data.xy.AbstractXYDataset | ||||
↳ | org.jfree.data.xy.AbstractIntervalXYDataset | ||||
↳ | org.jfree.data.time.TimeTableXYDataset |
A dataset for regular time periods that implements the
TableXYDataset
interface. Note that the TableXYDataset
interface requires all series to share the same set of x-values. When
adding a new item (x, y)
to one series, all other series
automatically get a new item (x, null)
unless a non-null item
has already been specified.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new dataset.
| |||||||||||
Creates a new dataset with the given time zone.
| |||||||||||
Creates a new dataset with the given time zone and locale.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new data item to the dataset and, if requested, sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Adds a new data item to the dataset and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Removes all data items from the dataset and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Returns a clone of this dataset.
| |||||||||||
Tests this dataset for equality with an arbitrary object.
| |||||||||||
Returns the range of the values in this dataset's domain.
| |||||||||||
Returns a flag that controls whether the domain is treated as 'points in
time'.
| |||||||||||
Returns the minimum x-value in the dataset.
| |||||||||||
Returns the maximum x-value in the dataset.
| |||||||||||
Returns the ending X value for the specified series and item.
| |||||||||||
Returns the end x-value (as a double primitive) for an item within
a series.
| |||||||||||
Returns the ending Y value for the specified series and item.
| |||||||||||
Returns the number of items in a series.
| |||||||||||
Returns the number of items in ALL series.
| |||||||||||
Returns the number of series in the dataset.
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the starting X value for the specified series and item.
| |||||||||||
Returns the start x-value (as a double primitive) for an item within
a series.
| |||||||||||
Returns the starting Y value for the specified series and item.
| |||||||||||
Returns the time period for the specified item.
| |||||||||||
Returns the x-value for an item within a series.
| |||||||||||
Returns the position within each time period that is used for the X
value.
| |||||||||||
Returns the x-value (as a double primitive) for an item within a series.
| |||||||||||
Returns the y-value for an item within a series.
| |||||||||||
Removes an existing data item from the dataset.
| |||||||||||
Removes an existing data item from the dataset and, if requested,
sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Sets a flag that controls whether the domain is treated as 'points in
time', or time periods.
| |||||||||||
Sets the position within each time period that is used for the X values,
then sends a
DatasetChangeEvent to all registered listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.data.xy.AbstractIntervalXYDataset
| |||||||||||
From class
org.jfree.data.xy.AbstractXYDataset
| |||||||||||
From class
org.jfree.data.general.AbstractSeriesDataset
| |||||||||||
From class
org.jfree.data.general.AbstractDataset
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.ObjectInputValidation
| |||||||||||
From interface
org.jfree.data.DomainInfo
| |||||||||||
From interface
org.jfree.data.general.Dataset
| |||||||||||
From interface
org.jfree.data.general.SeriesChangeListener
| |||||||||||
From interface
org.jfree.data.general.SeriesDataset
| |||||||||||
From interface
org.jfree.data.xy.IntervalXYDataset
| |||||||||||
From interface
org.jfree.data.xy.TableXYDataset
| |||||||||||
From interface
org.jfree.data.xy.XYDataset
|
Creates a new dataset.
Creates a new dataset with the given time zone.
zone | the time zone to use (null not permitted).
|
---|
Creates a new dataset with the given time zone and locale.
zone | the time zone to use (null not permitted). |
---|---|
locale | the locale to use (null not permitted).
|
Adds a new data item to the dataset and, if requested, sends a
DatasetChangeEvent
to all registered listeners.
period | the time period (null not permitted). |
---|---|
y | the value for this period (null permitted). |
seriesName | the name of the series to add the value
(null not permitted). |
notify | whether dataset listener are notified or not. |
Adds a new data item to the dataset and sends a
DatasetChangeEvent
to all registered listeners.
period | the time period. |
---|---|
y | the value for this period. |
seriesName | the name of the series to add the value. |
Removes all data items from the dataset and sends a
DatasetChangeEvent
to all registered listeners.
Returns a clone of this dataset.
CloneNotSupportedException | if the dataset cannot be cloned. |
---|
Tests this dataset for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the range of the values in this dataset's domain.
includeInterval | a flag that controls whether or not the x-intervals are taken into account. |
---|
Returns a flag that controls whether the domain is treated as 'points in time'.
This flag is used when determining the max and min values for the domain. If true, then only the x-values are considered for the max and min values. If false, then the start and end x-values will also be taken into consideration.
Returns the minimum x-value in the dataset.
includeInterval | a flag that determines whether or not the x-interval is taken into account. |
---|
Returns the maximum x-value in the dataset.
includeInterval | a flag that determines whether or not the x-interval is taken into account. |
---|
Returns the ending X value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item within a series (zero-based index). |
Returns the end x-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the ending Y value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item within a series (zero-based index). |
Returns the number of items in a series. This is the same value
that is returned by getItemCount()
since all series
share the same x-values (time periods).
series | the series (zero-based index, ignored). |
---|
Returns the number of items in ALL series.
Returns the number of series in the dataset.
Returns the key for a series.
series | the series (zero-based index). |
---|
Returns the starting X value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item within a series (zero-based index). |
Returns the start x-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the starting Y value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item within a series (zero-based index). |
Returns the time period for the specified item. Bear in mind that all series share the same set of time periods.
item | the item index (0 <= i <= getItemCount() ). |
---|
Returns the x-value for an item within a series. The x-values may or may not be returned in ascending order, that is up to the class implementing the interface.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
Returns the position within each time period that is used for the X value.
null
).Returns the x-value (as a double primitive) for an item within a series.
series | the series index (zero-based). |
---|---|
item | the item index (zero-based). |
Returns the y-value for an item within a series.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
null
).
Removes an existing data item from the dataset.
period | the (existing!) time period of the value to remove
(null not permitted). |
---|---|
seriesName | the (existing!) series name to remove the value
(null not permitted). |
Removes an existing data item from the dataset and, if requested,
sends a DatasetChangeEvent
to all registered listeners.
period | the (existing!) time period of the value to remove
(null not permitted). |
---|---|
seriesName | the (existing!) series name to remove the value
(null not permitted). |
notify | whether dataset listener are notified or not. |
Sets a flag that controls whether the domain is treated as 'points in
time', or time periods. A DatasetChangeEvent
is sent to all
registered listeners.
flag | the new value of the flag. |
---|
Sets the position within each time period that is used for the X values,
then sends a DatasetChangeEvent
to all registered listeners.
anchor | the anchor position (null not permitted). |
---|