org.jfree.data.xy

Interface VectorXYDataset

public interface VectorXYDataset extends XYDataset

An extension of the XYDataset interface that allows a vector to be defined at a specific (x, y) location.

Since: 1.0.6

Method Summary
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.

Method Detail

getVector

public 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 new Vector instance --- if you are just interested in the x and y components, use the VectorXYDataset and VectorXYDataset methods instead.

Parameters: series the series index. item the item index.

Returns: The vector (possibly null).

getVectorXValue

public 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

public 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.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.