Module platform

Class CyclicXYItemRenderer.OverwriteDataSet

java.lang.Object
org.jfree.chart.renderer.xy.CyclicXYItemRenderer.OverwriteDataSet
All Implemented Interfaces:
Dataset, SeriesDataset, XYDataset
Enclosing class:
CyclicXYItemRenderer

protected static class CyclicXYItemRenderer.OverwriteDataSet extends Object implements XYDataset
A dataset to hold the interpolated points when drawing new lines.
  • Field Details

    • delegateSet

      protected XYDataset delegateSet
      The delegate dataset.
  • Constructor Details

    • OverwriteDataSet

      public OverwriteDataSet(double[] x, double[] y, XYDataset delegateSet)
      Creates a new dataset.
      Parameters:
      x - the x values.
      y - the y values.
      delegateSet - the dataset.
  • Method Details

    • getDomainOrder

      public DomainOrder getDomainOrder()
      Returns the order of the domain (X) values.
      Specified by:
      getDomainOrder in interface XYDataset
      Returns:
      The domain order.
    • getItemCount

      public int getItemCount(int series)
      Returns the number of items for the given series.
      Specified by:
      getItemCount in interface XYDataset
      Parameters:
      series - the series index (zero-based).
      Returns:
      The item count.
    • getX

      public Number getX(int series, int item)
      Returns the x-value.
      Specified by:
      getX in interface XYDataset
      Parameters:
      series - the series index (zero-based).
      item - the item index (zero-based).
      Returns:
      The x-value.
    • getXValue

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

      public Number getY(int series, int item)
      Returns the y-value.
      Specified by:
      getY in interface XYDataset
      Parameters:
      series - the series index (zero-based).
      item - the item index (zero-based).
      Returns:
      The y-value.
    • getYValue

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

      public int getSeriesCount()
      Returns the number of series in the dataset.
      Specified by:
      getSeriesCount in interface SeriesDataset
      Returns:
      The series count.
    • getSeriesKey

      public Comparable getSeriesKey(int series)
      Returns the name of the given series.
      Specified by:
      getSeriesKey in interface SeriesDataset
      Parameters:
      series - the series index (zero-based).
      Returns:
      The series name.
    • indexOf

      public int indexOf(Comparable seriesName)
      Returns the index of the named series, or -1.
      Specified by:
      indexOf in interface SeriesDataset
      Parameters:
      seriesName - the series name.
      Returns:
      The index.
    • addChangeListener

      public void addChangeListener(DatasetChangeListener listener)
      Does nothing.
      Specified by:
      addChangeListener in interface Dataset
      Parameters:
      listener - ignored.
    • removeChangeListener

      public void removeChangeListener(DatasetChangeListener listener)
      Does nothing.
      Specified by:
      removeChangeListener in interface Dataset
      Parameters:
      listener - ignored.
    • getGroup

      public DatasetGroup getGroup()
      Returns the dataset group.
      Specified by:
      getGroup in interface Dataset
      Returns:
      The dataset group.
    • setGroup

      public void setGroup(DatasetGroup group)
      Does nothing.
      Specified by:
      setGroup in interface Dataset
      Parameters:
      group - ignored.