Example usage for org.jfree.data.xy WindDataItem getWindDirection

List of usage examples for org.jfree.data.xy WindDataItem getWindDirection

Introduction

In this page you can find the example usage for org.jfree.data.xy WindDataItem getWindDirection.

Prototype

public Number getWindDirection() 

Source Link

Usage

From source file:org.jfree.data.xy.DefaultWindDataset.java

/**
 * Returns the wind direction for one item within a series.  This is a
 * number between 0 and 12, like the numbers on an upside-down clock face.
 *
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 *
 * @return The wind direction for the item within the series.
 *//*from   w ww  . j  a  va  2 s .  co  m*/
@Override
public Number getWindDirection(int series, int item) {
    List oneSeriesData = (List) this.allSeriesData.get(series);
    WindDataItem windItem = (WindDataItem) oneSeriesData.get(item);
    return windItem.getWindDirection();
}