org.jfree.data.xy
Class VectorSeries
- Cloneable, Serializable
A list of (x,y, deltaX, deltaY) data items.
VectorSeries(Comparable key)- Creates a new empty series.
|
VectorSeries(Comparable key, boolean autoSort, boolean allowDuplicateXValues)- Constructs a new series that contains no data.
|
void | add(double x, double y, double deltaX, double deltaY)- Adds a data item to the series.
|
ComparableObjectItem | getDataItem(int index)- Returns the data item at the specified index.
|
double | getVectorXValue(int index)- Returns the x-component of the vector for an item in the series.
|
double | getVectorYValue(int index)- Returns the y-component of the vector for an item in the series.
|
double | getXValue(int index)- Returns the x-value for the specified item.
|
double | getYValue(int index)- Returns the y-value for the specified item.
|
ComparableObjectItem | remove(int index)- Removes the item at the specified index and sends a
SeriesChangeEvent to all registered listeners.
|
add, add, add, clear, delete, equals, getAllowDuplicateXValues, getAutoSort, getDataItem, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, remove, setMaximumItemCount, update, updateByIndex |
addChangeListener, addPropertyChangeListener, clone, equals, firePropertyChange, fireSeriesChanged, getDescription, getItemCount, getKey, getNotify, hashCode, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, setDescription, setKey, setNotify |
VectorSeries
public VectorSeries(Comparable key)
Creates a new empty series.
key - the series key (null not permitted).
VectorSeries
public VectorSeries(Comparable key,
boolean autoSort,
boolean allowDuplicateXValues) Constructs a new series that contains no data. You can specify
whether or not duplicate x-values are allowed for the series.
key - the series key (null not permitted).autoSort - a flag that controls whether or not the items in the
series are sorted.allowDuplicateXValues - a flag that controls whether duplicate
x-values are allowed.
add
public void add(double x,
double y,
double deltaX,
double deltaY) Adds a data item to the series.
x - the x-value.y - the y-value.deltaX - the vector x.deltaY - the vector y.
getVectorXValue
public double getVectorXValue(int index)
Returns the x-component of the vector for an item in the series.
- The x-component of the vector.
getVectorYValue
public double getVectorYValue(int index)
Returns the y-component of the vector for an item in the series.
- The y-component of the vector.
getXValue
public double getXValue(int index)
Returns the x-value for the specified item.
getYValue
public double getYValue(int index)
Returns the y-value for the specified item.