org.jfree.data.time
public class TimeSeriesCollection extends AbstractIntervalXYDataset implements XYDataset, IntervalXYDataset, DomainInfo, Serializable
Constructor Summary | |
---|---|
TimeSeriesCollection()
Constructs an empty dataset, tied to the default timezone. | |
TimeSeriesCollection(TimeZone zone)
Constructs an empty dataset, tied to a specific timezone.
| |
TimeSeriesCollection(TimeSeries series)
Constructs a dataset containing a single series (more can be added),
tied to the default timezone.
| |
TimeSeriesCollection(TimeSeries series, TimeZone zone)
Constructs a dataset containing a single series (more can be added),
tied to a specific timezone.
|
Method Summary | |
---|---|
void | addSeries(TimeSeries series)
Adds a series to the collection and sends a DatasetChangeEvent to
all registered listeners.
|
boolean | equals(Object obj)
Tests this time series collection for equality with another object.
|
Range | getDomainBounds(boolean includeInterval)
Returns the range of the values in this dataset's domain.
|
boolean | getDomainIsPointsInTime()
Returns a flag that controls whether the domain is treated as 'points in
time'. |
double | getDomainLowerBound(boolean includeInterval)
Returns the minimum x-value in the dataset.
|
DomainOrder | getDomainOrder()
Returns the order of the domain values in this dataset.
|
double | getDomainUpperBound(boolean includeInterval)
Returns the maximum x-value in the dataset.
|
Number | getEndX(int series, int item)
Returns the ending X value for the specified series and item.
|
Number | getEndY(int series, int item)
Returns the ending Y value for the specified series and item.
|
int | getItemCount(int series)
Returns the number of items in the specified series. |
List | getSeries()
Returns a list of all the series in the collection.
|
TimeSeries | getSeries(int series)
Returns a series.
|
TimeSeries | getSeries(Comparable key)
Returns the series with the specified key, or null if
there is no such series.
|
int | getSeriesCount()
Returns the number of series in the collection.
|
Comparable | getSeriesKey(int series)
Returns the key for a series.
|
Number | getStartX(int series, int item)
Returns the starting X value for the specified series and item.
|
Number | getStartY(int series, int item)
Returns the starting Y value for the specified series and item.
|
int[] | getSurroundingItems(int series, long milliseconds)
Returns the indices of the two data items surrounding a particular
millisecond value.
|
Number | getX(int series, int item)
Returns the x-value for the specified series and item.
|
protected long | getX(RegularTimePeriod period)
Returns the x-value for a time period.
|
TimePeriodAnchor | getXPosition()
Returns the position within each time period that is used for the X
value when the collection is used as an
XYDataset.
|
double | getXValue(int series, int item)
Returns the x-value (as a double primitive) for an item within a series.
|
Number | getY(int series, int item)
Returns the y-value for the specified series and item.
|
int | hashCode()
Returns a hash code value for the object.
|
int | indexOf(TimeSeries series)
Returns the index of the specified series, or -1 if that series is not
present in the dataset.
|
void | removeAllSeries()
Removes all the series from the collection and sends a
DatasetChangeEvent to all registered listeners. |
void | removeSeries(TimeSeries series)
Removes the specified series from the collection and sends a
DatasetChangeEvent to all registered listeners.
|
void | removeSeries(int index)
Removes a series from the collection.
|
void | setDomainIsPointsInTime(boolean flag)
Sets a flag that controls whether the domain is treated as 'points in
time', or time periods.
|
void | setXPosition(TimePeriodAnchor anchor)
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.
|
Parameters: zone the timezone (null
permitted, will use
TimeZone.getDefault()
in that case).
Parameters: series the series (null
permitted).
Parameters: series a series to add to the collection (null
permitted). zone the timezone (null
permitted, will use
TimeZone.getDefault()
in that case).
Parameters: series the series (null
not permitted).
Parameters: obj the other object.
Returns: A boolean.
Parameters: includeInterval a flag that determines whether or not the x-interval is taken into account.
Returns: The range.
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. Iftrue
, 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 flag.
Parameters: includeInterval a flag that determines whether or not the x-interval is taken into account.
Returns: The minimum value.
Returns: ASCENDING
Parameters: includeInterval a flag that determines whether or not the x-interval is taken into account.
Returns: The maximum value.
Parameters: series The series (zero-based index). item The item (zero-based index).
Returns: The value.
Parameters: series te series (zero-based index). item the item (zero-based index).
Returns: The value (possibly null
).
Parameters: series the series index (zero-based).
Returns: The item count.
Returns: The list (which is unmodifiable).
Parameters: series the index of the series (zero-based).
Returns: The series.
null
if
there is no such series.
Parameters: key the series key (null
permitted).
Returns: The series with the given key.
Returns: The series count.
Parameters: series the index of the series (zero-based).
Returns: The key for a series.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The value (possibly null
).
Parameters: series the series index. milliseconds the time.
Returns: An array containing the (two) indices of the items surrounding the time.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The value.
Parameters: period the time period (null
not permitted).
Returns: The x-value.
Returns: The anchor position (never null
).
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The x-value.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The value (possibly null
).
Returns: The hashcode
Parameters: series the series (null
not permitted).
Returns: The series index.
Since: 1.0.6
Parameters: series the series (null
not permitted).
Parameters: index the series index (zero-based).
Deprecated: This flag is no longer used, as of 1.0.1. The
includeInterval
flag in methods such as
TimeSeriesCollection makes this unnecessary.
Parameters: flag the flag.
Parameters: anchor the anchor position (null
not permitted).