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

All Implemented Interfaces:
    PublicCloneable, OHLCDataset, XYDataset, SeriesDataset, Serializable, SeriesChangeListener, Cloneable, Dataset, ObjectInputValidation

A simple implementation of the OHLCDataset interface. This implementation supports only one series.
Constructor:
 public DefaultOHLCDataset(Comparable key,
    OHLCDataItem[] data) 
    Creates a new dataset.
    Parameters:
    key - the series key.
    data - the data items.
Method from org.jfree.data.xy.DefaultOHLCDataset Summary:
clone,   equals,   getClose,   getCloseValue,   getHigh,   getHighValue,   getItemCount,   getLow,   getLowValue,   getOpen,   getOpenValue,   getSeriesCount,   getSeriesKey,   getVolume,   getVolumeValue,   getX,   getXDate,   getY,   sortDataByDate
Methods from org.jfree.data.xy.AbstractXYDataset:
getDomainOrder,   getXValue,   getYValue
Methods from org.jfree.data.general.AbstractSeriesDataset:
getSeriesCount,   getSeriesKey,   indexOf,   seriesChanged
Methods from org.jfree.data.general.AbstractDataset:
addChangeListener,   clone,   fireDatasetChanged,   getGroup,   hasListener,   notifyListeners,   removeChangeListener,   setGroup,   validateObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.xy.DefaultOHLCDataset Detail:
 public Object clone() throws CloneNotSupportedException 
    Returns an independent copy of this dataset.
 public boolean equals(Object obj) 
    Tests this instance for equality with an arbitrary object.
 public Number getClose(int series,
    int item) 
    Returns the close value.
 public double getCloseValue(int series,
    int item) 
    Returns the close-value (as a double primitive) for an item within a series.
 public Number getHigh(int series,
    int item) 
    Returns the high value.
 public double getHighValue(int series,
    int item) 
    Returns the high-value (as a double primitive) for an item within a series.
 public int getItemCount(int series) 
    Returns the item count for the specified series.
 public Number getLow(int series,
    int item) 
    Returns the low value.
 public double getLowValue(int series,
    int item) 
    Returns the low-value (as a double primitive) for an item within a series.
 public Number getOpen(int series,
    int item) 
    Returns the open value.
 public double getOpenValue(int series,
    int item) 
    Returns the open-value (as a double primitive) for an item within a series.
 public int getSeriesCount() 
    Returns the series count.
 public Comparable getSeriesKey(int series) 
    Returns the series key.
 public Number getVolume(int series,
    int item) 
    Returns the trading volume.
 public double getVolumeValue(int series,
    int item) 
    Returns the volume-value (as a double primitive) for an item within a series.
 public Number getX(int series,
    int item) 
    Returns the x-value for a data item.
 public Date getXDate(int series,
    int item) 
    Returns the x-value for a data item as a date.
 public Number getY(int series,
    int item) 
    Returns the y-value.
 public  void sortDataByDate() 
    Sorts the data into ascending order by date.