Class DefaultHighLowDataset

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

public class DefaultHighLowDataset
extends AbstractXYDataset
implements OHLCDataset, PublicCloneable
A simple implementation of the OHLCDataset interface. See also the DefaultOHLCDataset class, which provides another implementation that is very similar.
See Also:
Serialized Form
  • Constructor Details

    • DefaultHighLowDataset

      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 Details