|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.general.Series
org.jfree.data.ComparableObjectSeries
org.jfree.data.time.ohlc.OHLCSeries
public class OHLCSeries
A list of (RegularTimePeriod
, open, high, low, close) data items.
OHLCSeriesCollection
,
Serialized FormField Summary |
---|
Fields inherited from class org.jfree.data.ComparableObjectSeries |
---|
data |
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. |
ComparableObjectItem |
remove(int index)
Removes the item with the specified index. |
Methods inherited from class org.jfree.data.ComparableObjectSeries |
---|
add, add, add, clear, delete, equals, getAllowDuplicateXValues, getAutoSort, getItemCount, getMaximumItemCount, hashCode, indexOf, remove, setMaximumItemCount, update, updateByIndex |
Methods inherited from class org.jfree.data.general.Series |
---|
addChangeListener, addPropertyChangeListener, addVetoableChangeListener, clone, firePropertyChange, fireSeriesChanged, fireVetoableChange, getDescription, getKey, getNotify, isEmpty, notifyListeners, removeChangeListener, removePropertyChangeListener, removeVetoableChangeListener, setDescription, setKey, setNotify |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OHLCSeries(Comparable key)
key
- the series key (null
not permitted).Method Detail |
---|
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.public ComparableObjectItem remove(int index)
remove
in class ComparableObjectSeries
index
- the item index.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |