Class XYChartViewer<K>

Direct Known Subclasses:
ProbeXYChartViewer

public abstract class XYChartViewer<K> extends ChartFxViewer
Chart-fx XY viewer with keyed, non-blocking data updates.
  • Constructor Details

    • XYChartViewer

      public XYChartViewer()
  • Method Details

    • createChart

      protected io.fair_acc.chartfx.XYChart createChart()
      Description copied from class: ChartFxViewer
      Creates the configured chart displayed by this viewer.
      Specified by:
      createChart in class ChartFxViewer
    • addDataSet

      protected void addDataSet(K key, String name)
      Registers a dataset during viewer activation.
    • addData

      public void addData(K key, double x, double y)
      Appends a point without synchronously waiting for the JavaFX thread.
    • getDataSets

      public Map<K, io.fair_acc.dataset.spi.DoubleDataSet> getDataSets()
      Returns the datasets by their keys.
    • getXYChart

      public io.fair_acc.chartfx.XYChart getXYChart()
      Returns the managed XY chart.
    • getXAxisLabel

      protected String getXAxisLabel()
      Returns the X-axis label.
    • getYAxisLabel

      protected String getYAxisLabel()
      Returns the Y-axis label.
    • getChartTitle

      protected String getChartTitle()
      Returns the chart title.
    • getMaxDataPoints

      public int getMaxDataPoints()
      Returns the data-point sliding-window limit.
    • setMaxDataPoints

      public void setMaxDataPoints(int maxDataPoints)
      Sets the data-point sliding-window limit.