public class OHLCSeries extends ComparableObjectSeries
RegularTimePeriod, open, high, low, close) data items.OHLCSeriesCollection,
Serialized Formdata| Constructor and Description |
|---|
OHLCSeries(java.lang.Comparable key)
Creates a new empty series.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(OHLCItem item)
Adds a data item to the series.
|
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.
|
ComparableObjectItem |
remove(int index)
Removes the item with the specified index.
|
add, add, add, clear, delete, equals, getAllowDuplicateXValues, getAutoSort, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, setMaximumItemCount, update, updateByIndexaddChangeListener, addPropertyChangeListener, addVetoableChangeListener, clone, firePropertyChange, fireSeriesChanged, fireVetoableChange, getDescription, getKey, getNotify, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setKey, setNotifypublic OHLCSeries(java.lang.Comparable key)
key - the series key (null not permitted).public RegularTimePeriod getPeriod(int index)
index - the item index.public ComparableObjectItem getDataItem(int index)
getDataItem in class ComparableObjectSeriesindex - the item index.public void add(RegularTimePeriod period, double open, double high, double low, double close)
period - the period.open - the open-value.high - the high-value.low - the low-value.close - the close-value.public void add(OHLCItem item)
item - the item (null not permitted).public ComparableObjectItem remove(int index)
remove in class ComparableObjectSeriesindex - the item index.