public class VectorSeries extends ComparableObjectSeries
VectorSeriesCollection
,
Serialized Formdata
Constructor and Description |
---|
VectorSeries(java.lang.Comparable key)
Creates a new empty series.
|
VectorSeries(java.lang.Comparable key,
boolean autoSort,
boolean allowDuplicateXValues)
Constructs a new series that contains no data.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double y,
double deltaX,
double deltaY)
Adds a data item to the series.
|
void |
add(VectorDataItem item,
boolean notify)
Adds a data item to the series and, if requested, sends a
SeriesChangeEvent to all registered listeners. |
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, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, setMaximumItemCount, update, updateByIndex
addChangeListener, addPropertyChangeListener, addVetoableChangeListener, clone, firePropertyChange, fireSeriesChanged, fireVetoableChange, getDescription, getKey, getNotify, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setKey, setNotify
public VectorSeries(java.lang.Comparable key)
key
- the series key (null
not permitted).public VectorSeries(java.lang.Comparable key, boolean autoSort, boolean allowDuplicateXValues)
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.public void add(double x, double y, double deltaX, double deltaY)
x
- the x-value.y
- the y-value.deltaX
- the vector x.deltaY
- the vector y.public void add(VectorDataItem item, boolean notify)
SeriesChangeEvent
to all registered listeners.item
- the data item (null
not permitted).notify
- notify listeners?public ComparableObjectItem remove(int index)
SeriesChangeEvent
to all registered listeners.remove
in class ComparableObjectSeries
index
- the index.public double getXValue(int index)
index
- the item index.public double getYValue(int index)
index
- the item index.public double getVectorXValue(int index)
index
- the item index.public double getVectorYValue(int index)
index
- the item index.public ComparableObjectItem getDataItem(int index)
getDataItem
in class ComparableObjectSeries
index
- the item index.