- java.lang.Object
-
- org.jfree.data.ComparableObjectItem
-
- org.jfree.data.xy.VectorDataItem
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ComparableObjectItem>
public class VectorDataItem extends ComparableObjectItem
A data item representing data in the form (x, y, deltaX, deltaY), intended for use by theVectorSeriesclass.- Since:
- 1.0.6
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VectorDataItem(double x, double y, double deltaX, double deltaY)Creates a newVectorDataIteminstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorgetVector()Returns the vector.doublegetVectorX()Returns the x-component for the vector.doublegetVectorY()Returns the y-component for the vector.doublegetXValue()Returns the x-value.doublegetYValue()Returns the y-value.-
Methods inherited from class org.jfree.data.ComparableObjectItem
clone, compareTo, equals, getComparable, getObject, hashCode, setObject
-
-
-
-
Constructor Detail
-
VectorDataItem
public VectorDataItem(double x, double y, double deltaX, double deltaY)
Creates a newVectorDataIteminstance.- Parameters:
x- the x-value.y- the y-value.deltaX- the vector x.deltaY- the vector y.
-
-
Method Detail
-
getXValue
public double getXValue()
Returns the x-value.- Returns:
- The x-value (never
null).
-
getYValue
public double getYValue()
Returns the y-value.- Returns:
- The y-value.
-
getVectorX
public double getVectorX()
Returns the x-component for the vector.- Returns:
- The x-component.
-
getVectorY
public double getVectorY()
Returns the y-component for the vector.- Returns:
- The y-component.
-
-