Class AbstractXYDataset

All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, EventListener, Dataset, SeriesChangeListener, SeriesDataset, XYDataset
Direct Known Subclasses:
AbstractIntervalXYDataset, AbstractXYZDataset, DefaultBoxAndWhiskerXYDataset, DefaultHighLowDataset, DefaultWindDataset, EmptyXYDataset, JDBCXYDataset, MyXML_XYDataset, OHLCDataset, SampleSignalDataset, SampleXYDataset, SampleXYDataset2

public abstract class AbstractXYDataset
extends AbstractSeriesDataset
implements XYDataset
An base class that you can use to create new implementations of the XYDataset interface.
See Also:
Serialized Form
  • Constructor Details

    • AbstractXYDataset

      public AbstractXYDataset()
  • Method Details

    • getX

      public double getX​(int series, int item)
      Returns the x-value (as a double primitive) for an item within a series.
      Specified by:
      getX in interface XYDataset
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The x-value.
    • getY

      public double getY​(int series, int item)
      Returns the y-value (as a double primitive) for an item within a series.
      Specified by:
      getY in interface XYDataset
      Parameters:
      series - the series (zero-based index).
      item - the item (zero-based index).
      Returns:
      The y-value.