Package org.jfree.data.xy
Class WindDataItem
- java.lang.Object
-
- org.jfree.data.xy.WindDataItem
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
class WindDataItem extends java.lang.Object implements java.lang.Comparable, java.io.Serializable
A wind data item.
-
-
Constructor Summary
Constructors Constructor Description WindDataItem(java.lang.Number x, java.lang.Number windDir, java.lang.Number windForce)
Creates a new wind data item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object object)
Compares this item to another object.boolean
equals(java.lang.Object obj)
Tests thisWindDataItem
for equality with an arbitrary object.java.lang.Number
getWindDirection()
Returns the wind direction.java.lang.Number
getWindForce()
Returns the wind force.java.lang.Number
getX()
Returns the x-value.
-
-
-
Method Detail
-
getX
public java.lang.Number getX()
Returns the x-value.- Returns:
- The x-value.
-
getWindDirection
public java.lang.Number getWindDirection()
Returns the wind direction.- Returns:
- The wind direction.
-
getWindForce
public java.lang.Number getWindForce()
Returns the wind force.- Returns:
- The wind force.
-
compareTo
public int compareTo(java.lang.Object object)
Compares this item to another object.- Specified by:
compareTo
in interfacejava.lang.Comparable
- Parameters:
object
- the other object.- Returns:
- An int that indicates the relative comparison.
-
equals
public boolean equals(java.lang.Object obj)
Tests thisWindDataItem
for equality with an arbitrary object.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
-