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.TimeSeriesCollection |
A collection of time series objects. This class implements the
XYDataset
interface, as well as the extended
IntervalXYDataset
interface. This makes it a convenient dataset for
use with the XYPlot
class.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs an empty dataset, tied to the default timezone.
| |||||||||||
Constructs an empty dataset, tied to a specific timezone.
| |||||||||||
Constructs a dataset containing a single series (more can be added),
tied to the default timezone.
| |||||||||||
Constructs a dataset containing a single series (more can be added),
tied to a specific timezone.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a series to the collection and sends a
DatasetChangeEvent to
all registered listeners. | |||||||||||
Tests this time series collection for equality with another object.
| |||||||||||
Returns the range of the values in this dataset's domain.
| |||||||||||
This method is deprecated.
This flag is no longer used (as of 1.0.1).
| |||||||||||
Returns the minimum x-value in the dataset.
| |||||||||||
Returns the order of the domain values in this dataset.
| |||||||||||
Returns the maximum x-value in the dataset.
| |||||||||||
Returns the ending X value for the specified series and item.
| |||||||||||
Returns the ending Y value for the specified series and item.
| |||||||||||
Returns the number of items in the specified series.
| |||||||||||
Returns a series.
| |||||||||||
Returns the series with the specified key, or
null if
there is no such series. | |||||||||||
Returns a list of all the series in the collection.
| |||||||||||
Returns the number of series in the collection.
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the starting X value for the specified series and item.
| |||||||||||
Returns the starting Y value for the specified series and item.
| |||||||||||
Returns the indices of the two data items surrounding a particular
millisecond value.
| |||||||||||
Returns the x-value for the specified series and item.
| |||||||||||
Returns the position within each time period that is used for the X
value when the collection is used as an
XYDataset . | |||||||||||
Returns the x-value (as a double primitive) for an item within a series.
| |||||||||||
Returns the y-value for the specified series and item.
| |||||||||||
Returns a hash code value for the object.
| |||||||||||
Returns the index of the specified series, or -1 if that series is not
present in the dataset.
| |||||||||||
Removes all the series from the collection and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
Removes a series from the collection.
| |||||||||||
Removes the specified series from the collection and sends a
DatasetChangeEvent to all registered listeners. | |||||||||||
This method is deprecated.
This flag is no longer used, as of 1.0.1. The
includeInterval flag in methods such as
getDomainBounds(boolean) makes this unnecessary.
| |||||||||||
Sets the position within each time period that is used for the X values
when the collection is used as an
XYDataset , then sends a
DatasetChangeEvent is sent to all registered listeners. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the x-value for a time period.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs an empty dataset, tied to the default timezone.
Constructs an empty dataset, tied to a specific timezone.
zone | the timezone (null permitted, will use
TimeZone.getDefault() in that case).
|
---|
Constructs a dataset containing a single series (more can be added), tied to the default timezone.
series | the series (null permitted).
|
---|
Constructs a dataset containing a single series (more can be added), tied to a specific timezone.
series | a series to add to the collection (null
permitted). |
---|---|
zone | the timezone (null permitted, will use
TimeZone.getDefault() in that case).
|
Adds a series to the collection and sends a DatasetChangeEvent
to
all registered listeners.
series | the series (null not permitted).
|
---|
Tests this time series collection for equality with another object.
obj | the other object. |
---|
Returns the range of the values in this dataset's domain.
includeInterval | a flag that determines whether or not the x-interval is taken into account. |
---|
This method is deprecated.
This flag is no longer used (as of 1.0.1).
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 order of the domain values in this dataset.
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 (zero-based index). |
Returns the ending Y value for the specified series and item.
series | te series (zero-based index). |
---|---|
item | the item (zero-based index). |
null
).
Returns the number of items in the specified series. This method is provided for convenience.
series | the series index (zero-based). |
---|
Returns a series.
series | the index of the series (zero-based). |
---|
Returns the series with the specified key, or null
if
there is no such series.
key | the series key (null permitted). |
---|
Returns a list of all the series in the collection.
Returns the number of series in the collection.
Returns the key for a series.
series | the index of the series (zero-based). |
---|
Returns the starting X value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
Returns the starting Y value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
null
).
Returns the indices of the two data items surrounding a particular millisecond value.
series | the series index. |
---|---|
milliseconds | the time. |
Returns the x-value for the specified series and item.
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 when the collection is used as an
XYDataset
.
null
).
Returns the x-value (as a double primitive) for an item within a series.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
Returns the y-value for the specified series and item.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
null
).
Returns a hash code value for the object.
Returns the index of the specified series, or -1 if that series is not present in the dataset.
series | the series (null not permitted). |
---|
Removes all the series from the collection and sends a
DatasetChangeEvent
to all registered listeners.
Removes a series from the collection.
index | the series index (zero-based). |
---|
Removes the specified series from the collection and sends a
DatasetChangeEvent
to all registered listeners.
series | the series (null not permitted).
|
---|
This method is deprecated.
This flag is no longer used, as of 1.0.1. The
includeInterval
flag in methods such as
getDomainBounds(boolean)
makes this unnecessary.
Sets a flag that controls whether the domain is treated as 'points in time', or time periods.
flag | the flag. |
---|
Sets the position within each time period that is used for the X values
when the collection is used as an XYDataset
, then sends a
DatasetChangeEvent
is sent to all registered listeners.
anchor | the anchor position (null not permitted).
|
---|
Returns the x-value for a time period.
period | the time period (null not permitted). |
---|