Example usage for org.jfree.data.time.ohlc OHLC getClose

List of usage examples for org.jfree.data.time.ohlc OHLC getClose

Introduction

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

Prototype

public double getClose() 

Source Link

Document

Returns the close value.

Usage

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

/**
 * Returns the close value./*from  ww  w  . j av  a2s .  c  om*/
 *
 * @return The close value.
 */
public double getCloseValue() {
    OHLC ohlc = (OHLC) getObject();
    if (ohlc != null) {
        return ohlc.getClose();
    } else {
        return Double.NaN;
    }
}