Example usage for Java org.jfree.data.time TimeSeries fields, constructors, methods, implement or subclass
The text is from its open source code.
TimeSeries(Comparable name) Creates a new (empty) time series. | |
TimeSeries(Comparable name, Class timePeriodClass) Creates a new (empty) time series with the specified name and class of RegularTimePeriod . | |
TimeSeries(Comparable name, String domain, String range) Creates a new time series that contains no data. | |
TimeSeries(Comparable name, String domain, String range, Class timePeriodClass) Creates a new time series that contains no data. |
void | add(TimeSeriesDataItem item, boolean notify) Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners. |
void | add(RegularTimePeriod period, double value) Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners. |
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. |
void | add(RegularTimePeriod period, double value, boolean notify) Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners. |
void | add(RegularTimePeriod period, Number value, boolean notify) Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners. |
void | add(TimeSeriesDataItem item) Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners. |
TimeSeries | addAndOrUpdate(TimeSeries series) Adds or updates data from one series to another. |
void | addChangeListener(SeriesChangeListener listener) Registers an object with this series, to receive notification whenever the series changes. |
TimeSeriesDataItem | addOrUpdate(RegularTimePeriod period, double value) Adds or updates an item in the times series and sends a SeriesChangeEvent to all registered listeners. |
TimeSeriesDataItem | addOrUpdate(RegularTimePeriod period, Number value) Adds or updates an item in the times series and sends a SeriesChangeEvent to all registered listeners. |
TimeSeriesDataItem | addOrUpdate(TimeSeriesDataItem item) Adds or updates an item in the times series and sends a SeriesChangeEvent to all registered listeners. |
void | addVetoableChangeListener(VetoableChangeListener listener) Adds a vetoable property change listener to the series. |
void | clear() Removes all data items from the series and sends a SeriesChangeEvent to all registered listeners. |
Object | clone() Returns a clone of the time series. |
TimeSeries | createCopy(int start, int end) Creates a new timeseries by copying a subset of the data in this time series. |
TimeSeries | createCopy(RegularTimePeriod start, RegularTimePeriod end) Creates a new timeseries by copying a subset of the data in this time series. |
void | delete(int start, int end) Deletes data from start until end index (end inclusive). |
void | delete(RegularTimePeriod period) Deletes the data item for the given time period and sends a SeriesChangeEvent to all registered listeners. |
boolean | equals(Object obj) Tests the series for equality with an arbitrary object. |
Range | findValueRange(Range xRange, TimePeriodAnchor xAnchor, TimeZone zone) Finds the range of y-values that fall within the specified range of x-values (where the x-values are interpreted as milliseconds since the epoch and converted to time periods using the specified timezone). |
Range | findValueRange() Returns the range of y-values in the time series. |
void | fireSeriesChanged() General method for signalling to registered listeners that the series has been changed. |
Class> | getClass() Returns the runtime class of this Object . |
TimeSeriesDataItem | getDataItem(int index) Returns a data item from the dataset. |
TimeSeriesDataItem | getDataItem(RegularTimePeriod period) Returns the data item for a specific period. |
String | getDescription() Returns a description of the series. |
String | getDomainDescription() Returns the domain description. |
int | getIndex(RegularTimePeriod period) Returns the index for the item (if any) that corresponds to a time period. |
int | getItemCount() Returns the number of items in the series. |
List | getItems() Returns the list of data items for the series (the list contains TimeSeriesDataItem objects and is unmodifiable). |
Comparable | getKey() Returns the key for the series. |
long | getMaximumItemAge() Returns the maximum item age (in time periods) for the series. |
int | getMaximumItemCount() Returns the maximum number of items that will be retained in the series. |
double | getMaxY() Returns the largest y-value in the series, ignoring any null and Double.NaN values. |
double | getMinY() Returns the smallest y-value in the series, ignoring any null and Double.NaN values. |
RegularTimePeriod | getNextTimePeriod() Returns a time period that would be the next in sequence on the end of the time series. |
String | getRangeDescription() Returns the range description. |
TimeSeriesDataItem | getRawDataItem(int index) Returns a data item for the series. |
TimeSeriesDataItem | getRawDataItem(RegularTimePeriod period) Returns a data item for the series. |
RegularTimePeriod | getTimePeriod(int index) Returns the time period at the specified index. |
Class | getTimePeriodClass() Returns the time period class for this series. |
Collection | getTimePeriods() Returns a collection of all the time periods in the time series. |
Number | getValue(int index) Returns the value at the specified index. |
Number | getValue(RegularTimePeriod period) Returns the value for a time period. |
int | hashCode() Returns a hash code value for the object. |
boolean | isEmpty() Returns true if the series contains no data items, and false otherwise. |
void | removeAgedItems(boolean notify) Age items in the series. |
void | removeAgedItems(long latest, boolean notify) Age items in the series. |
void | removeChangeListener(SeriesChangeListener listener) Deregisters an object, so that it not longer receives notification whenever the series changes. |
void | removeVetoableChangeListener(VetoableChangeListener listener) Removes a vetoable property change listener from the series. |
void | setDescription(String description) Sets the description of the series and sends a PropertyChangeEvent to all registered listeners. |
void | setDomainDescription(String description) Sets the domain description and sends a PropertyChangeEvent (with the property name Domain ) to all registered property change listeners. |
void | setKey(Comparable key) Sets the key for the series and sends a VetoableChangeEvent (with the property name "Key") to all registered listeners. |
void | setMaximumItemAge(long periods) Sets the number of time units in the 'history' for the series. |
void | setMaximumItemCount(int maximum) Sets the maximum number of items that will be retained in the series. |
void | update(RegularTimePeriod period, double value) Updates (changes) the value for a time period. |
void | update(RegularTimePeriod period, Number value) Updates (changes) the value for a time period. |
void | update(int index, Number value) Updates (changes) the value of a data item. |