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.SerializableA 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 intcompareTo(java.lang.Object object)Compares this item to another object.booleanequals(java.lang.Object obj)Tests thisWindDataItemfor equality with an arbitrary object.java.lang.NumbergetWindDirection()Returns the wind direction.java.lang.NumbergetWindForce()Returns the wind force.java.lang.NumbergetX()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:
compareToin 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 thisWindDataItemfor equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
-