org.jfree.data.time.ohlc
public class OHLCSeries extends ComparableObjectSeries
Since: 1.0.4
See Also: OHLCSeriesCollection
Constructor Summary | |
---|---|
OHLCSeries(Comparable key)
Creates a new empty series. |
Method Summary | |
---|---|
void | add(RegularTimePeriod period, double open, double high, double low, double close)
Adds a data item to the series.
|
ComparableObjectItem | getDataItem(int index)
Returns the data item at the specified index.
|
RegularTimePeriod | getPeriod(int index)
Returns the time period for the specified item.
|
Parameters: key the series key (null
not permitted).
Parameters: period the period. open the open-value. high the high-value. low the low-value. close the close-value.
Parameters: index the item index.
Returns: The data item.
Parameters: index the item index.
Returns: The time period.