Java org.jfree.data.time TimeSeries fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.data.time TimeSeries fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.data.time TimeSeries.

The text is from its open source code.

Subclass

org.jfree.data.time.TimeSeries has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidadd(TimeSeriesDataItem item, boolean notify)
Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidadd(RegularTimePeriod period, double value)
Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidadd(RegularTimePeriod period, Number value)
Adds a new data item to the series and sends a org.jfree.data.general.SeriesChangeEvent to all registered listeners.
voidadd(RegularTimePeriod period, double value, boolean notify)
Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidadd(RegularTimePeriod period, Number value, boolean notify)
Adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidadd(TimeSeriesDataItem item)
Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
TimeSeriesaddAndOrUpdate(TimeSeries series)
Adds or updates data from one series to another.
voidaddChangeListener(SeriesChangeListener listener)
Registers an object with this series, to receive notification whenever the series changes.
TimeSeriesDataItemaddOrUpdate(RegularTimePeriod period, double value)
Adds or updates an item in the times series and sends a SeriesChangeEvent to all registered listeners.
TimeSeriesDataItemaddOrUpdate(RegularTimePeriod period, Number value)
Adds or updates an item in the times series and sends a SeriesChangeEvent to all registered listeners.
TimeSeriesDataItemaddOrUpdate(TimeSeriesDataItem item)
Adds or updates an item in the times series and sends a SeriesChangeEvent to all registered listeners.
voidaddVetoableChangeListener(VetoableChangeListener listener)
Adds a vetoable property change listener to the series.
voidclear()
Removes all data items from the series and sends a SeriesChangeEvent to all registered listeners.
Objectclone()
Returns a clone of the time series.
TimeSeriescreateCopy(int start, int end)
Creates a new timeseries by copying a subset of the data in this time series.
TimeSeriescreateCopy(RegularTimePeriod start, RegularTimePeriod end)
Creates a new timeseries by copying a subset of the data in this time series.
voiddelete(int start, int end)
Deletes data from start until end index (end inclusive).
voiddelete(RegularTimePeriod period)
Deletes the data item for the given time period and sends a SeriesChangeEvent to all registered listeners.
booleanequals(Object obj)
Tests the series for equality with an arbitrary object.
RangefindValueRange(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).
RangefindValueRange()
Returns the range of y-values in the time series.
voidfireSeriesChanged()
General method for signalling to registered listeners that the series has been changed.
ClassgetClass()
Returns the runtime class of this Object .
TimeSeriesDataItemgetDataItem(int index)
Returns a data item from the dataset.
TimeSeriesDataItemgetDataItem(RegularTimePeriod period)
Returns the data item for a specific period.
StringgetDescription()
Returns a description of the series.
StringgetDomainDescription()
Returns the domain description.
intgetIndex(RegularTimePeriod period)
Returns the index for the item (if any) that corresponds to a time period.
intgetItemCount()
Returns the number of items in the series.
ListgetItems()
Returns the list of data items for the series (the list contains TimeSeriesDataItem objects and is unmodifiable).
ComparablegetKey()
Returns the key for the series.
longgetMaximumItemAge()
Returns the maximum item age (in time periods) for the series.
intgetMaximumItemCount()
Returns the maximum number of items that will be retained in the series.
doublegetMaxY()
Returns the largest y-value in the series, ignoring any null and Double.NaN values.
doublegetMinY()
Returns the smallest y-value in the series, ignoring any null and Double.NaN values.
RegularTimePeriodgetNextTimePeriod()
Returns a time period that would be the next in sequence on the end of the time series.
StringgetRangeDescription()
Returns the range description.
TimeSeriesDataItemgetRawDataItem(int index)
Returns a data item for the series.
TimeSeriesDataItemgetRawDataItem(RegularTimePeriod period)
Returns a data item for the series.
RegularTimePeriodgetTimePeriod(int index)
Returns the time period at the specified index.
ClassgetTimePeriodClass()
Returns the time period class for this series.
CollectiongetTimePeriods()
Returns a collection of all the time periods in the time series.
NumbergetValue(int index)
Returns the value at the specified index.
NumbergetValue(RegularTimePeriod period)
Returns the value for a time period.
inthashCode()
Returns a hash code value for the object.
booleanisEmpty()
Returns true if the series contains no data items, and false otherwise.
voidremoveAgedItems(boolean notify)
Age items in the series.
voidremoveAgedItems(long latest, boolean notify)
Age items in the series.
voidremoveChangeListener(SeriesChangeListener listener)
Deregisters an object, so that it not longer receives notification whenever the series changes.
voidremoveVetoableChangeListener(VetoableChangeListener listener)
Removes a vetoable property change listener from the series.
voidsetDescription(String description)
Sets the description of the series and sends a PropertyChangeEvent to all registered listeners.
voidsetDomainDescription(String description)
Sets the domain description and sends a PropertyChangeEvent (with the property name Domain) to all registered property change listeners.
voidsetKey(Comparable key)
Sets the key for the series and sends a VetoableChangeEvent (with the property name "Key") to all registered listeners.
voidsetMaximumItemAge(long periods)
Sets the number of time units in the 'history' for the series.
voidsetMaximumItemCount(int maximum)
Sets the maximum number of items that will be retained in the series.
voidupdate(RegularTimePeriod period, double value)
Updates (changes) the value for a time period.
voidupdate(RegularTimePeriod period, Number value)
Updates (changes) the value for a time period.
voidupdate(int index, Number value)
Updates (changes) the value of a data item.