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

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

A simple implementation of the OHLCDataset interface. See also the DefaultOHLCDataset class, which provides another implementation that is very similar.
Constructor:
 public DefaultHighLowDataset(Comparable seriesKey,
    Date[] date,
    double[] high,
    double[] low,
    double[] open,
    double[] close,
    double[] volume) 
    Constructs a new high/low/open/close dataset.

    The current implementation allows only one series in the dataset. This may be extended in a future version.

    Parameters:
    seriesKey - the key for the series (null not permitted).
    date - the dates (null not permitted).
    high - the high values (null not permitted).
    low - the low values (null not permitted).
    open - the open values (null not permitted).
    close - the close values (null not permitted).
    volume - the volume values (null not permitted).
Method from org.jfree.data.xy.DefaultHighLowDataset Summary:
createNumberArray,   equals,   getClose,   getCloseValue,   getHigh,   getHighValue,   getItemCount,   getLow,   getLowValue,   getOpen,   getOpenValue,   getSeriesCount,   getSeriesKey,   getVolume,   getVolumeValue,   getX,   getXDate,   getY
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.DefaultHighLowDataset Detail:
 public static Number[] createNumberArray(double[] data) 
    Constructs an array of Number objects from an array of doubles.
 public boolean equals(Object obj) 
    Tests this dataset for equality with an arbitrary instance.
 public Number getClose(int series,
    int item) 
    Returns the close-value for one item in a series.
 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 for one item in a series.
 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 number of items in the specified series.
 public Number getLow(int series,
    int item) 
    Returns the low-value for one item in a series.
 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 for one item in a series.
 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 number of series in the dataset.

    This implementation only allows one series.

 public Comparable getSeriesKey(int series) 
    Returns the key for the series stored in this dataset.
 public Number getVolume(int series,
    int item) 
    Returns the volume-value for one item in a series.
 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 one item in a series. The value returned is a Long instance generated from the underlying Date object. To avoid generating a new object instance, you might prefer to call #getXValue(int, int) .
 public Date getXDate(int series,
    int item) 
    Returns the x-value for one item in a series, as a Date.

    This method is provided for convenience only.

 public Number getY(int series,
    int item)