Example usage for org.jfree.data.time TimePeriodValue getValue

List of usage examples for org.jfree.data.time TimePeriodValue getValue

Introduction

In this page you can find the example usage for org.jfree.data.time TimePeriodValue getValue.

Prototype

public Number getValue() 

Source Link

Document

Returns the value.

Usage

From source file:org.jfree.data.time.TimePeriodValuesCollection.java

/**
 * Returns the y-value for the specified series and item.
 *
 * @param series  the series (zero-based index).
 * @param item  the item (zero-based index).
 *
 * @return The y-value for the specified series and item.
 *//* w  ww . ja  v a  2 s .  c  o m*/
@Override
public Number getY(int series, int item) {
    TimePeriodValues ts = (TimePeriodValues) this.data.get(series);
    TimePeriodValue dp = ts.getDataItem(item);
    return dp.getValue();
}