Example usage for org.jfree.data.time.ohlc OHLCItem getYValue

List of usage examples for org.jfree.data.time.ohlc OHLCItem getYValue

Introduction

In this page you can find the example usage for org.jfree.data.time.ohlc OHLCItem getYValue.

Prototype

public double getYValue() 

Source Link

Document

Returns the y-value.

Usage

From source file:org.jfree.data.time.ohlc.OHLCSeriesCollection.java

/**
 * Returns the y-value for an item within a series.
 *
 * @param series  the series index./*from  ww  w. ja  v  a 2 s.  c om*/
 * @param item  the item index.
 *
 * @return The y-value.
 */
@Override
public Number getY(int series, int item) {
    OHLCSeries s = (OHLCSeries) this.data.get(series);
    OHLCItem di = (OHLCItem) s.getDataItem(item);
    return new Double(di.getYValue());
}