Interface HighLowDataset

All Superinterfaces:
Dataset, SeriesDataset, XYDataset
All Known Implementing Classes:
CombinedDataset, DefaultHighLowDataset, OHLCDataset, SubSeriesDataset

public interface HighLowDataset
extends XYDataset
An interface that defines data in the form of (x, high, low, open, close) tuples.

Example: JFreeChart used this interface to obtain data for high-low-open-close plots.

  • Method Summary

    Modifier and Type Method Description
    double getClose​(int series, int item)
    Returns the close-value (as a double primitive) for an item within a series.
    Number getCloseValue​(int series, int item)
    Returns the y-value for the specified series and item.
    double getHigh​(int series, int item)
    Returns the high-value (as a double primitive) for an item within a series.
    Number getHighValue​(int series, int item)
    Returns the high-value for the specified series and item.
    double getLow​(int series, int item)
    Returns the low-value (as a double primitive) for an item within a series.
    Number getLowValue​(int series, int item)
    Returns the low-value for the specified series and item.
    double getOpen​(int series, int item)
    Returns the open-value (as a double primitive) for an item within a series.
    Number getOpenValue​(int series, int item)
    Returns the open-value for the specified series and item.
    double getVolume​(int series, int item)
    Returns the volume-value (as a double primitive) for an item within a series.
    Number getVolumeValue​(int series, int item)
    Returns the volume for the specified series and item.

    Methods inherited from interface org.jfree.data.Dataset

    addChangeListener, getGroup, removeChangeListener, setGroup

    Methods inherited from interface org.jfree.data.SeriesDataset

    getSeriesCount, getSeriesName

    Methods inherited from interface org.jfree.data.XYDataset

    getItemCount, getX, getXValue, getY, getYValue
  • Method Details

    • getHighValue

      Number getHighValue​(int series, int item)
      Returns the high-value for the specified series and item.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The value.
    • getHigh

      double getHigh​(int series, int item)
      Returns the high-value (as a double primitive) for an item within a series.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The high-value.
    • getLowValue

      Number getLowValue​(int series, int item)
      Returns the low-value for the specified series and item.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The value.
    • getLow

      double getLow​(int series, int item)
      Returns the low-value (as a double primitive) for an item within a series.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The low-value.
    • getOpenValue

      Number getOpenValue​(int series, int item)
      Returns the open-value for the specified series and item.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The value.
    • getOpen

      double getOpen​(int series, int item)
      Returns the open-value (as a double primitive) for an item within a series.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The open-value.
    • getCloseValue

      Number getCloseValue​(int series, int item)
      Returns the y-value for the specified series and item.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The value.
    • getClose

      double getClose​(int series, int item)
      Returns the close-value (as a double primitive) for an item within a series.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The close-value.
    • getVolumeValue

      Number getVolumeValue​(int series, int item)
      Returns the volume for the specified series and item.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The value.
    • getVolume

      double getVolume​(int series, int item)
      Returns the volume-value (as a double primitive) for an item within a series.
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The volume-value.