| org.jfree.data.ComparableObjectSeries org.jfree.data.time.ohlc.OHLCSeries
Method Summary | |
public void | add(RegularTimePeriod period, double open, double high, double low, double close) Adds a data item to the series. | public ComparableObjectItem | getDataItem(int index) Returns the data item at the specified index.
Parameters: index - the item index. | public RegularTimePeriod | getPeriod(int index) Returns the time period for the specified item.
Parameters: index - the item index. |
OHLCSeries | public OHLCSeries(Comparable key)(Code) | | Creates a new empty series. By default, items added to the series will
be sorted into ascending order by period, and duplicate periods will
not be allowed.
Parameters: key - the series key (null not permitted). |
add | public void add(RegularTimePeriod period, double open, double high, double low, double close)(Code) | | Adds a data item to the series.
Parameters: period - the period. Parameters: open - the open-value. Parameters: high - the high-value. Parameters: low - the low-value. Parameters: close - the close-value. |
getDataItem | public ComparableObjectItem getDataItem(int index)(Code) | | Returns the data item at the specified index.
Parameters: index - the item index. The data item. |
getPeriod | public RegularTimePeriod getPeriod(int index)(Code) | | Returns the time period for the specified item.
Parameters: index - the item index. The time period. |
|
|