Package org.jfree.data.time.ohlc
Class OHLCItem
java.lang.Object
org.jfree.data.ComparableObjectItem
org.jfree.data.time.ohlc.OHLCItem
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
An item representing data in the form
(time-period, open, high, low,
close)
.- See Also:
-
Constructor Summary
ConstructorDescriptionOHLCItem
(RegularTimePeriod period, double open, double high, double low, double close) Creates a new instance ofOHLCItem
. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the close value.double
Returns the high value.double
Returns the low value.double
Returns the open value.Returns the period.double
Returns the y-value.Methods inherited from class org.jfree.data.ComparableObjectItem
clone, compareTo, equals, getComparable, getObject, hashCode, setObject
-
Constructor Details
-
OHLCItem
Creates a new instance ofOHLCItem
.- Parameters:
period
- the time period.open
- the open-value.high
- the high-value.low
- the low-value.close
- the close-value.
-
-
Method Details
-
getPeriod
Returns the period.- Returns:
- The period (never
null
).
-
getYValue
Returns the y-value.- Returns:
- The y-value.
-
getOpenValue
Returns the open value.- Returns:
- The open value.
-
getHighValue
Returns the high value.- Returns:
- The high value.
-
getLowValue
Returns the low value.- Returns:
- The low value.
-
getCloseValue
Returns the close value.- Returns:
- The close value.
-