Example usage for Java org.jfree.data.xy XYSeries fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
void | add(double x, double y) Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners. |
void | add(double x, Number y) Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners. |
void | add(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. |
void | add(XYDataItem item, boolean notify) Adds a data item to the series and, if requested, sends a SeriesChangeEvent to all registered listeners. |
void | add(double x, double y, boolean notify) Adds a data item to the series and, if requested, sends a SeriesChangeEvent to all registered listeners. |
void | add(double x, Number y, boolean notify) Adds a data item to the series and, if requested, sends a SeriesChangeEvent to all registered listeners. |
void | add(Number x, Number y, boolean notify) Adds new data to the series and, if requested, sends a SeriesChangeEvent to all registered listeners. |
void | add(XYDataItem item) Adds a data item to the series and sends a SeriesChangeEvent to all registered listeners. |
void | addChangeListener(SeriesChangeListener listener) Registers an object with this series, to receive notification whenever the series changes. |
XYDataItem | addOrUpdate(double x, double y) Adds or updates an item in the series and sends a SeriesChangeEvent to all registered listeners. |
XYDataItem | addOrUpdate(Number x, Number y) Adds or updates an item in the 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 series. |
XYSeries | createCopy(int start, int end) Creates a new series by copying a subset of the data in this time series. |
void | delete(int start, int end) Deletes a range of items from the series and sends a SeriesChangeEvent to all registered listeners. |
boolean | equals(Object obj) Tests this series for equality with an arbitrary object. |
void | fireSeriesChanged() General method for signalling to registered listeners that the series has been changed. |
boolean | getAllowDuplicateXValues() Returns a flag that controls whether duplicate x-values are allowed. |
boolean | getAutoSort() Returns the flag that controls whether the items in the series are automatically sorted. |
Class> | getClass() Returns the runtime class of this Object . |
XYDataItem | getDataItem(int index) Return the data item with the specified index. |
String | getDescription() Returns a description of the series. |
int | getItemCount() Returns the number of items in the series. |
List | getItems() Returns the list of data items for the series (the list contains XYDataItem objects and is unmodifiable). |
Comparable | getKey() Returns the key for the series. |
int | getMaximumItemCount() Returns the maximum number of items that will be retained in the series. |
double | getMaxX() Returns the largest x-value in the series, ignoring any Double.NaN values. |
double | getMaxY() Returns the largest y-value in the series, ignoring any Double.NaN values. |
double | getMinX() Returns the smallest x-value in the series, ignoring any Double.NaN values. |
double | getMinY() Returns the smallest y-value in the series, ignoring any null and Double.NaN values. |
Number | getX(int index) Returns the x-value at the specified index. |
Number | getY(int index) Returns the y-value at the specified index. |
int | hashCode() Returns a hash code. |
int | indexOf(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. |
boolean | isEmpty() Returns true if the series contains no data items, and false otherwise. |
XYDataItem | remove(int index) Removes the item at the specified index and sends a SeriesChangeEvent to all registered listeners. |
XYDataItem | remove(Number x) Removes an item with the specified x-value and sends a SeriesChangeEvent to all registered listeners. |
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 | setKey(Comparable key) Sets the key for the series and sends a VetoableChangeEvent (with the property name "Key") to all registered listeners. |
void | setMaximumItemCount(int maximum) Sets the maximum number of items that will be retained in the series. |
void | setNotify(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. |
String | toString() Returns a string representation of the object. |
void | update(int index, Number y) Updates the value of an item in the series and sends a SeriesChangeEvent to all registered listeners. |
void | update(Number x, Number y) Updates an item in the series. |
void | updateByIndex(int index, Number y) Updates the value of an item in the series and sends a SeriesChangeEvent to all registered listeners. |