Interface XYDataSeriesFunction

All Superinterfaces:
DataSeries, Serializable, Series, XYDataSeries
All Known Subinterfaces:
Figure, XYDataSeriesFunctionInternal
All Known Implementing Classes:
FigureImpl, FigureWidget, ScatterPlotMatrix, XYDataSeriesFunctionImpl

public interface XYDataSeriesFunction
extends XYDataSeries
XYDataSeries based on a function. By default, this calculates at least 200 data points inside the plot's existing range. The number of points can be increased for a finer grained plot, or decreased if less resolution is needed. The points are recomputed as the Chart's x-range changes.
  • Method Details

    • funcRange

      XYDataSeriesFunction funcRange​(double xmin, double xmax)
      Sets the data range for this series.
      Parameters:
      xmin - range minimum
      xmax - range maximum
      Returns:
      this data series with the new range
    • funcRange

      XYDataSeriesFunction funcRange​(double xmin, double xmax, int npoints)
      Sets the data range for this series.
      Parameters:
      xmin - range minimum
      xmax - range maximum
      npoints - number of data points
      Returns:
      this data series with the new range
      Throws:
      IllegalArgumentException - xmin must not be less than xmax xmin and xmax must be normal. See DoubleFpPrimitives.isNormal(double) npoints must non-negative
    • funcNPoints

      XYDataSeriesFunction funcNPoints​(int npoints)
      Sets the number of data points in this dataset.
      Parameters:
      npoints - number of points
      Returns:
      this data series with the specified number of points.
      Throws:
      IllegalArgumentException - npoints must be non-negative.