Java org.jfree.data.xy XYSeries fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.data.xy XYSeries fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Subclass

org.jfree.data.xy.XYSeries has subclasses.
Click this link to see all its subclasses.

Constructor

XYSeries(Comparable key)
Creates a new empty series.
XYSeries(Comparable key, boolean autoSort)
Constructs a new empty series, with the auto-sort flag set as requested, and duplicate values allowed.
XYSeries(Comparable key, boolean autoSort, boolean allowDuplicateXValues)
Constructs a new xy-series that contains no data.

Method

voidadd(double x, double y)
Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidadd(double x, Number y)
Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidadd(Number x, Number y)
Adds a new data item to the series (in the correct position if the autoSort flag is set for the series) and sends a SeriesChangeEvent to all registered listeners.
voidadd(XYDataItem item, boolean notify)
Adds a data item to the series and, if requested, sends a SeriesChangeEvent to all registered listeners.
voidadd(double x, double y, boolean notify)
Adds a data item to the series and, if requested, sends a SeriesChangeEvent to all registered listeners.
voidadd(double x, Number y, boolean notify)
Adds a data item to the series and, if requested, sends a SeriesChangeEvent to all registered listeners.
voidadd(Number x, Number y, boolean notify)
Adds new data to the series and, if requested, sends a SeriesChangeEvent to all registered listeners.
voidadd(XYDataItem item)
Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
voidaddChangeListener(SeriesChangeListener listener)
Registers an object with this series, to receive notification whenever the series changes.
XYDataItemaddOrUpdate(double x, double y)
Adds or updates an item in the series and sends a SeriesChangeEvent to all registered listeners.
XYDataItemaddOrUpdate(Number x, Number y)
Adds or updates an item in the 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 series.
XYSeriescreateCopy(int start, int end)
Creates a new series by copying a subset of the data in this time series.
voiddelete(int start, int end)
Deletes a range of items from the series and sends a SeriesChangeEvent to all registered listeners.
booleanequals(Object obj)
Tests this series for equality with an arbitrary object.
voidfireSeriesChanged()
General method for signalling to registered listeners that the series has been changed.
booleangetAllowDuplicateXValues()
Returns a flag that controls whether duplicate x-values are allowed.
booleangetAutoSort()
Returns the flag that controls whether the items in the series are automatically sorted.
ClassgetClass()
Returns the runtime class of this Object .
XYDataItemgetDataItem(int index)
Return the data item with the specified index.
StringgetDescription()
Returns a description of the series.
intgetItemCount()
Returns the number of items in the series.
ListgetItems()
Returns the list of data items for the series (the list contains XYDataItem objects and is unmodifiable).
ComparablegetKey()
Returns the key for the series.
intgetMaximumItemCount()
Returns the maximum number of items that will be retained in the series.
doublegetMaxX()
Returns the largest x-value in the series, ignoring any Double.NaN values.
doublegetMaxY()
Returns the largest y-value in the series, ignoring any Double.NaN values.
doublegetMinX()
Returns the smallest x-value in the series, ignoring any Double.NaN values.
doublegetMinY()
Returns the smallest y-value in the series, ignoring any null and Double.NaN values.
NumbergetX(int index)
Returns the x-value at the specified index.
NumbergetY(int index)
Returns the y-value at the specified index.
inthashCode()
Returns a hash code.
intindexOf(Number x)
Returns the index of the item with the specified x-value, or a negative index if the series does not contain an item with that x-value.
booleanisEmpty()
Returns true if the series contains no data items, and false otherwise.
XYDataItemremove(int index)
Removes the item at the specified index and sends a SeriesChangeEvent to all registered listeners.
XYDataItemremove(Number x)
Removes an item with the specified x-value and sends a SeriesChangeEvent to all registered listeners.
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.
voidsetKey(Comparable key)
Sets the key for the series and sends a VetoableChangeEvent (with the property name "Key") to all registered listeners.
voidsetMaximumItemCount(int maximum)
Sets the maximum number of items that will be retained in the series.
voidsetNotify(boolean notify)
Sets the flag that controls whether or not change events are sent to registered listeners.
double[][]toArray()
Returns a new array containing the x and y values from this series.
StringtoString()
Returns a string representation of the object.
voidupdate(int index, Number y)
Updates the value of an item in the series and sends a SeriesChangeEvent to all registered listeners.
voidupdate(Number x, Number y)
Updates an item in the series.
voidupdateByIndex(int index, Number y)
Updates the value of an item in the series and sends a SeriesChangeEvent to all registered listeners.