org.jfree.data.xy
public class OHLCDataItem extends Object implements Comparable, Serializable
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.
|
Parameters: 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.
Parameters: object the object to compare to.
Returns: A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The close value.
Returns: The date (never null
).
Returns: The high value.
Returns: The low value.
Returns: The open value.
Returns: The volume.