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

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

Introduction

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

Prototype

public Number getX() 

Source Link

Usage

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

/**
 * Returns the x-value for one item within a series.  This should represent
 * a point in time, encoded as milliseconds in the same way as
 * java.util.Date./*from   w  w w  .  ja  v a  2  s.c o  m*/
 *
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 *
 * @return The x-value for the item within the series.
 */
@Override
public Number getX(int series, int item) {
    List oneSeriesData = (List) this.allSeriesData.get(series);
    WindDataItem windItem = (WindDataItem) oneSeriesData.get(item);
    return windItem.getX();
}