-
- All Superinterfaces:
Dataset,SeriesDataset<S>,XYDataset<S>
- All Known Implementing Classes:
VectorSeriesCollection
public interface VectorXYDataset<S extends Comparable<S>> extends XYDataset<S>
An extension of theXYDatasetinterface that allows a vector to be defined at a specific (x, y) location.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VectorgetVector(int series, int item)Returns the vector for an item in a series.doublegetVectorXValue(int series, int item)Returns the x-component of the vector for an item in a series.doublegetVectorYValue(int series, int item)Returns the y-component of the vector for an item in a series.-
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, removeChangeListener
-
Methods inherited from interface org.jfree.data.general.SeriesDataset
getSeriesCount, getSeriesKey, indexOf
-
Methods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getItemCount, getX, getXValue, getY, getYValue
-
-
-
-
Method Detail
-
getVectorXValue
double getVectorXValue(int series, int item)
Returns the x-component of the vector for an item in a series.- Parameters:
series- the series index.item- the item index.- Returns:
- The x-component of the vector.
-
getVectorYValue
double getVectorYValue(int series, int item)
Returns the y-component of the vector for an item in a series.- Parameters:
series- the series index.item- the item index.- Returns:
- The y-component of the vector.
-
getVector
Vector getVector(int series, int item)
Returns the vector for an item in a series. Depending on the particular dataset implementation, this may involve creating a newVectorinstance --- if you are just interested in the x and y components, use thegetVectorXValue(int, int)andgetVectorYValue(int, int)methods instead.- Parameters:
series- the series index.item- the item index.- Returns:
- The vector (possibly
null).
-
-