Package org.jfree.data.xy
Class VectorDataItem
java.lang.Object
org.jfree.data.ComparableObjectItem
org.jfree.data.xy.VectorDataItem
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
A data item representing data in the form (x, y, deltaX, deltaY), intended
for use by the
VectorSeries
class.- See Also:
-
Constructor Summary
ConstructorDescriptionVectorDataItem
(double x, double y, double deltaX, double deltaY) Creates a newVectorDataItem
instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the vector.double
Returns the x-component for the vector.double
Returns the y-component for the vector.double
Returns the x-value.double
Returns the y-value.Methods inherited from class org.jfree.data.ComparableObjectItem
clone, compareTo, equals, getComparable, getObject, hashCode, setObject
-
Constructor Details
-
VectorDataItem
Creates a newVectorDataItem
instance.- Parameters:
x
- the x-value.y
- the y-value.deltaX
- the vector x.deltaY
- the vector y.
-
-
Method Details
-
getXValue
Returns the x-value.- Returns:
- The x-value (never
null
).
-
getYValue
Returns the y-value.- Returns:
- The y-value.
-
getVector
Returns the vector.- Returns:
- The vector (possibly
null
).
-
getVectorX
Returns the x-component for the vector.- Returns:
- The x-component.
-
getVectorY
Returns the y-component for the vector.- Returns:
- The y-component.
-