Save This Page
Home » jcommon-1.0.13 » org.jfree » data » xy » [javadoc | source]
org.jfree.data.xy
public class: OHLCDataItem [javadoc | source]
java.lang.Object
   org.jfree.data.xy.OHLCDataItem

All Implemented Interfaces:
    Serializable, Comparable

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:
 public OHLCDataItem(Date date,
    double open,
    double high,
    double low,
    double close,
    double volume) 
    Creates a new item.
    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.
Method from org.jfree.data.xy.OHLCDataItem Summary:
compareTo,   equals,   getClose,   getDate,   getHigh,   getLow,   getOpen,   getVolume
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.xy.OHLCDataItem Detail:
 public int compareTo(Object object) 
    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.
 public boolean equals(Object obj) 
    Checks this instance for equality with an arbitrary object.
 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.