| org.jfree.data.ComparableObjectSeries org.jfree.data.xy.VectorSeries
Method Summary | |
public void | add(double x, double y, double deltaX, double deltaY) Adds a data item to the series. | public void | clear() Removes all data items from the series and sends a
SeriesChangeEvent to all registered listeners. | public ComparableObjectItem | getDataItem(int index) Returns the data item at the specified index.
Parameters: index - the item index. | public double | getVectorXValue(int index) Returns the x-component of the vector for an item in the series.
Parameters: index - the item index. | public double | getVectorYValue(int index) Returns the y-component of the vector for an item in the series.
Parameters: index - the item index. | public double | getXValue(int index) Returns the x-value for the specified item.
Parameters: index - the item index. | public double | getYValue(int index) Returns the y-value for the specified item.
Parameters: index - the item index. | public ComparableObjectItem | remove(int index) Removes the item at the specified index and sends a
SeriesChangeEvent to all registered listeners.
Parameters: index - the index. |
VectorSeries | public VectorSeries(Comparable key)(Code) | | Creates a new empty series.
Parameters: key - the series key (null not permitted). |
VectorSeries | public VectorSeries(Comparable key, boolean autoSort, boolean allowDuplicateXValues)(Code) | | Constructs a new series that contains no data. You can specify
whether or not duplicate x-values are allowed for the series.
Parameters: key - the series key (null not permitted). Parameters: autoSort - a flag that controls whether or not the items in the series are sorted. Parameters: allowDuplicateXValues - a flag that controls whether duplicate x-values are allowed. |
add | public void add(double x, double y, double deltaX, double deltaY)(Code) | | Adds a data item to the series.
Parameters: x - the x-value. Parameters: y - the y-value. Parameters: deltaX - the vector x. Parameters: deltaY - the vector y. |
clear | public void clear()(Code) | | Removes all data items from the series and sends a
SeriesChangeEvent to all registered listeners.
|
getDataItem | public ComparableObjectItem getDataItem(int index)(Code) | | Returns the data item at the specified index.
Parameters: index - the item index. The data item. |
getVectorXValue | public double getVectorXValue(int index)(Code) | | Returns the x-component of the vector for an item in the series.
Parameters: index - the item index. The x-component of the vector. |
getVectorYValue | public double getVectorYValue(int index)(Code) | | Returns the y-component of the vector for an item in the series.
Parameters: index - the item index. The y-component of the vector. |
getXValue | public double getXValue(int index)(Code) | | Returns the x-value for the specified item.
Parameters: index - the item index. The x-value. |
getYValue | public double getYValue(int index)(Code) | | Returns the y-value for the specified item.
Parameters: index - the item index. The y-value. |
|
|