public class OHLCSeries extends ComparableObjectSeries
RegularTimePeriod
, open, high, low, close) data items.OHLCSeriesCollection
,
Serialized FormConstructor and Description |
---|
OHLCSeries(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.
|
clear, equals, getAllowDuplicateXValues, getAutoSort, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, setMaximumItemCount
addChangeListener, addPropertyChangeListener, addVetoableChangeListener, clone, fireSeriesChanged, getDescription, getKey, getNotify, isEmpty, removeChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setKey, setNotify
public OHLCSeries(Comparable key)
key
- the series key (null
not permitted).public RegularTimePeriod getPeriod(int index)
index
- the item index.public ComparableObjectItem getDataItem(int index)
index
- 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)
index
- the item index.Jas4pp 1.5 © Java Analysis Studio for Particle Physics