| java.lang.Object org.jfree.data.xy.OHLCDataItem
OHLCDataItem | public class OHLCDataItem implements Comparable,Serializable(Code) | | 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 | |
public | OHLCDataItem(Date date, double open, double high, double low, double close, double volume) Creates a new item. |
Method Summary | |
public int | compareTo(Object object) Compares this object with the specified object for order. | public boolean | equals(Object obj) Checks this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). | public Number | getClose() Returns the close value. | public Date | getDate() Returns the date that the data item relates to. | public Number | getHigh() Returns the high value. | public Number | getLow() Returns the low value. | public Number | getOpen() Returns the open value. | public Number | getVolume() Returns the volume. |
OHLCDataItem | public OHLCDataItem(Date date, double open, double high, double low, double close, double volume)(Code) | | Creates a new item.
Parameters: date - the date (null not permitted). Parameters: open - the open value. Parameters: high - the high value. Parameters: low - the low value. Parameters: close - the close value. Parameters: volume - the volume. |
compareTo | public int compareTo(Object object)(Code) | | Compares this object with the specified object for order. Returns a
negative integer, zero, or a positive integer as this object is less
than, equal to, or greater than the specified object.
Parameters: object - the object to compare to. A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. |
equals | public boolean equals(Object obj)(Code) | | Checks this instance for equality with an arbitrary object.
Parameters: obj - the object (null permitted). A boolean. |
getClose | public Number getClose()(Code) | | Returns the close value.
The close value. |
getDate | public Date getDate()(Code) | | Returns the date that the data item relates to.
The date (never null ). |
getHigh | public Number getHigh()(Code) | | Returns the high value.
The high value. |
getLow | public Number getLow()(Code) | | Returns the low value.
The low value. |
getOpen | public Number getOpen()(Code) | | Returns the open value.
The open value. |
getVolume | public Number getVolume()(Code) | | Returns the volume.
The volume. |
|
|