Class WindDataItem

java.lang.Object
org.jfree.data.xy.WindDataItem
All Implemented Interfaces:
Serializable, Comparable

class WindDataItem extends Object implements Comparable, Serializable
A wind data item.
  • Field Details

    • x

      private Number x
      The x-value.
    • windDir

      private Number windDir
      The wind direction.
    • windForce

      private Number windForce
      The wind force.
  • Constructor Details

    • WindDataItem

      public WindDataItem(Number x, Number windDir, Number windForce)
      Creates a new wind data item.
      Parameters:
      x - the x-value.
      windDir - the direction.
      windForce - the force.
  • Method Details

    • getX

      public Number getX()
      Returns the x-value.
      Returns:
      The x-value.
    • getWindDirection

      public Number getWindDirection()
      Returns the wind direction.
      Returns:
      The wind direction.
    • getWindForce

      public Number getWindForce()
      Returns the wind force.
      Returns:
      The wind force.
    • compareTo

      public int compareTo(Object object)
      Compares this item to another object.
      Specified by:
      compareTo in interface Comparable
      Parameters:
      object - the other object.
      Returns:
      An int that indicates the relative comparison.
    • equals

      public boolean equals(Object obj)
      Tests this WindDataItem for equality with an arbitrary object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.