org.jfree.data.time.ohlc
public class OHLCSeries extends ComparableObjectSeries
OHLCSeriesCollection
,
Serialized Formdata
Constructor and Description |
---|
OHLCSeries(java.lang.Comparable key)
Creates a new empty series.
|
Modifier and Type | Method and Description |
---|---|
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.
|
add, add, add, clear, delete, equals, getAllowDuplicateXValues, getAutoSort, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, remove, setMaximumItemCount, update, updateByIndex
addChangeListener, addPropertyChangeListener, clone, firePropertyChange, fireSeriesChanged, getDescription, getKey, getNotify, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, setDescription, setKey, setNotify
public 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 ComparableObjectSeries
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.Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.