|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.data.xy.OHLCDataItem
public class OHLCDataItem
Represents a single (open-high-low-close) data item in
an DefaultOHLCDataset. This data item is commonly used
to summarise the trading activity of a financial commodity for
a fixed period (most often one day).
| Constructor Summary | |
|---|---|
OHLCDataItem(Date date,
double open,
double high,
double low,
double close,
double volume)
Creates a new item. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object object)
Compares this object with the specified object for order. |
boolean |
equals(Object obj)
Checks this instance for equality with an arbitrary object. |
Number |
getClose()
Returns the close value. |
Date |
getDate()
Returns the date that the data item relates to. |
Number |
getHigh()
Returns the high value. |
Number |
getLow()
Returns the low value. |
Number |
getOpen()
Returns the open value. |
Number |
getVolume()
Returns the volume. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OHLCDataItem(Date date,
double open,
double high,
double low,
double close,
double volume)
date - the date (null not permitted).open - the open value.high - the high value.low - the low value.close - the close value.volume - the volume.| Method Detail |
|---|
public Date getDate()
null).public Number getOpen()
public Number getHigh()
public Number getLow()
public Number getClose()
public Number getVolume()
public boolean equals(Object obj)
equals in class Objectobj - the object (null permitted).
public int compareTo(Object object)
compareTo in interface Comparableobject - the object to compare to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||