Method Summary |
|
public void | add(TimeSeriesDataItem item) Adds a data item to the series and sends a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners. |
public void | add(TimeSeriesDataItem item, boolean notify) Adds a data item to the series and sends a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners. |
public void | add(RegularTimePeriod period, double value) Adds a new data item to the series and sends a
SeriesChangeEvent to all registered listeners. |
public void | add(RegularTimePeriod period, double value, boolean notify) Adds a new data item to the series and sends a
SeriesChangeEvent to all registered listeners. |
public void | add(RegularTimePeriod period, Number value) Adds a new data item to the series and sends
a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners. |
public void | add(RegularTimePeriod period, Number value, boolean notify) Adds a new data item to the series and sends
a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners. |
public TimeSeries | addAndOrUpdate(TimeSeries series) Adds or updates data from one series to another. |
public TimeSeriesDataItem | addOrUpdate(RegularTimePeriod period, double value) Adds or updates an item in the times series and sends a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners.
Parameters: period - the time period to add/update (null not permitted). Parameters: value - the new value. |
public TimeSeriesDataItem | addOrUpdate(RegularTimePeriod period, Number value) Adds or updates an item in the times series and sends a
org.jfree.data.general.SeriesChangeEvent to all registered
listeners.
Parameters: period - the time period to add/update (null not permitted). Parameters: value - the new value (null permitted). |
public void | clear() Removes all data items from the series and sends a
SeriesChangeEvent to all registered listeners. |
public Object | clone() Returns a clone of the time series. |
public TimeSeries | createCopy(int start, int end) Creates a new timeseries by copying a subset of the data in this time
series.
Parameters: start - the index of the first time period to copy. Parameters: end - the index of the last time period to copy. |
public TimeSeries | createCopy(RegularTimePeriod start, RegularTimePeriod end) Creates a new timeseries by copying a subset of the data in this time
series.
Parameters: start - the first time period to copy. Parameters: end - the last time period to copy. |
public void | delete(RegularTimePeriod period) Deletes the data item for the given time period and sends a
SeriesChangeEvent to all registered listeners. |
public void | delete(int start, int end) Deletes data from start until end index (end inclusive). |
public boolean | equals(Object object) Tests the series for equality with an arbitrary object.
Parameters: object - the object to test against (null permitted). |
public TimeSeriesDataItem | getDataItem(int index) Returns a data item for the series.
Parameters: index - the item index (zero-based). |
public TimeSeriesDataItem | getDataItem(RegularTimePeriod period) Returns the data item for a specific period.
Parameters: period - the period of interest (null not allowed). |
public String | getDomainDescription() Returns the domain description. |
public int | getIndex(RegularTimePeriod period) Returns the index for the item (if any) that corresponds to a time
period.
Parameters: period - the time period (null not permitted). |
public int | getItemCount() Returns the number of items in the series. |
public List | getItems() Returns the list of data items for the series (the list contains
TimeSeriesDataItem objects and is unmodifiable). |
public long | getMaximumItemAge() Returns the maximum item age (in time periods) for the series. |
public int | getMaximumItemCount() Returns the maximum number of items that will be retained in the series. |
public RegularTimePeriod | getNextTimePeriod() Returns a time period that would be the next in sequence on the end of
the time series. |
public String | getRangeDescription() Returns the range description. |
public RegularTimePeriod | getTimePeriod(int index) Returns the time period at the specified index.
Parameters: index - the index of the data item. |
public Class | getTimePeriodClass() Returns the time period class for this series. |
public Collection | getTimePeriods() Returns a collection of all the time periods in the time series. |
public Collection | getTimePeriodsUniqueToOtherSeries(TimeSeries series) Returns a collection of time periods in the specified series, but not in
this series, and therefore unique to the specified series.
Parameters: series - the series to check against this one. |
public Number | getValue(int index) Returns the value at the specified index.
Parameters: index - index of a value. |
public Number | getValue(RegularTimePeriod period) Returns the value for a time period. |
public int | hashCode() Returns a hash code value for the object. |
public void | removeAgedItems(boolean notify) Age items in the series. |
public void | removeAgedItems(long latest, boolean notify) Age items in the series. |
public void | setDomainDescription(String description) Sets the domain description and sends a PropertyChangeEvent
(with the property name Domain ) to all registered
property change listeners. |
public void | setMaximumItemAge(long periods) Sets the number of time units in the 'history' for the series. |
public void | setMaximumItemCount(int maximum) Sets the maximum number of items that will be retained in the series. |
public void | setRangeDescription(String description) Sets the range description and sends a PropertyChangeEvent
(with the property name Range ) to all registered listeners. |
public void | update(RegularTimePeriod period, Number value) Updates (changes) the value for a time period. |
public void | update(int index, Number value) Updates (changes) the value of a data item. |