public class

OHLCItem

extends ComparableObjectItem
java.lang.Object
   ↳ org.jfree.data.ComparableObjectItem
     ↳ org.jfree.data.time.ohlc.OHLCItem

Class Overview

An item representing data in the form (period, open, high, low, close).

Summary

Public Constructors
OHLCItem(RegularTimePeriod period, double open, double high, double low, double close)
Creates a new instance of OHLCItem.
Public Methods
double getCloseValue()
Returns the close value.
double getHighValue()
Returns the high value.
double getLowValue()
Returns the low value.
double getOpenValue()
Returns the open value.
RegularTimePeriod getPeriod()
Returns the period.
double getYValue()
Returns the y-value.
[Expand]
Inherited Methods
From class org.jfree.data.ComparableObjectItem
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

public OHLCItem (RegularTimePeriod period, double open, double high, double low, double close)

Creates a new instance of OHLCItem.

Parameters
period the time period.
open the open-value.
high the high-value.
low the low-value.
close the close-value.

Public Methods

public double getCloseValue ()

Returns the close value.

Returns
  • The close value.

public double getHighValue ()

Returns the high value.

Returns
  • The high value.

public double getLowValue ()

Returns the low value.

Returns
  • The low value.

public double getOpenValue ()

Returns the open value.

Returns
  • The open value.

public RegularTimePeriod getPeriod ()

Returns the period.

Returns
  • The period (never null).

public double getYValue ()

Returns the y-value.

Returns
  • The y-value.