Class Simple2DPlot

java.lang.Object
detectionPlotFX.plots.simple2d.Simple2DPlot
Direct Known Subclasses:
Bearing2DPlot, TOADPairPlot

public class Simple2DPlot extends Object
Class for a simple 2D plot which can hold both a data array and a related image. No scrolling since only intended for small quantities of data.
Author:
Doug Gillespie
  • Constructor Details

    • Simple2DPlot

      public Simple2DPlot(String unitName)
  • Method Details

    • getNode

      public javafx.scene.Node getNode()
    • setBottomAxisRange

      public void setBottomAxisRange(double minVal, double maxVal, double labelScale, String axisLabel)
      Set the XAxis range, scale and label.
      Parameters:
      minVal - minimum value
      maxVal - maximum value
      labelScale - label scale for the axis
      axisLabel - label for the axis.
    • setBottomAxisRange

      public void setBottomAxisRange(double minVal, double maxVal)
      Set the XAxis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
      axisLabel -
      axisScale -
    • setBottomLabel

      public void setBottomLabel(String label)
      Set the X Axis label
      Parameters:
      label -
    • setLeftAxisRange

      public void setLeftAxisRange(double minVal, double maxVal, double labelScale, String axisLabel)
      Set the Y Axis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
      labelScale - label scale for the axis
      axisLabel - label for the axis.
    • setLeftAxisRange

      public void setLeftAxisRange(double minVal, double maxVal)
      Set the Y Axis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
    • setLeftLabel

      public void setLeftLabel(String label)
      Set the Y Axis label
      Parameters:
      label -
    • setRightAxisRange

      public void setRightAxisRange(double minVal, double maxVal, double labelScale, String axisLabel)
      Set the right Y Axis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
      labelScale - label scale for the axis
      axisLabel - label for the axis.
    • setRightAxisRange

      public void setRightAxisRange(double minVal, double maxVal)
      Set the Right Y Axis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
    • setRightLabel

      public void setRightLabel(String label)
      Set the right Y Axis label
      Parameters:
      label -
    • setTopAxisRange

      public void setTopAxisRange(double minVal, double maxVal, double labelScale, String axisLabel)
      Set the right Y Axis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
      labelScale - label scale for the axis
      axisLabel - label for the axis.
    • setTopAxisRange

      public void setTopAxisRange(double minVal, double maxVal)
      Set the Right Y Axis range
      Parameters:
      minVal - minimum value
      maxVal - maximum value
    • setTopLabel

      public void setTopLabel(String label)
      Set the right Y Axis label
      Parameters:
      label -
    • setData

      public void setData(double[][] data, double[] rangeX, double[] rangeY)
    • repaintLater

      public void repaintLater()
      Repaint on the FX thread.
    • repaint

      public void repaint()
    • addSymbol

      public void addSymbol(PamSymbolFX symbol, double x, double y)
    • addSymbol

      public void addSymbol(PamSymbolFX symbol, javafx.geometry.Point2D pt)
    • isAutoScale

      public boolean isAutoScale()
      Returns:
      the autoScale
    • setAutoScale

      public void setAutoScale(boolean autoScale)
      Parameters:
      autoScale - the autoScale to set
    • getPlotPane

      public PlotPane getPlotPane()
      Returns:
      the plotPane
    • getSpectrogramColours

      public StandardPlot2DColours getSpectrogramColours()
      Returns:
      the spectrogramColours
    • getCurrentData

      public double[][] getCurrentData()
      Returns:
      the currentData
    • isPaintPeakPos

      public boolean isPaintPeakPos()
      Returns:
      the paintPeakPos
    • setPaintPeakPos

      public void setPaintPeakPos(boolean paintPeakPos)
      Parameters:
      paintPeakPos - the paintPeakPos to set
    • clearLineData

      public void clearLineData(boolean repaint)
    • addLineData

      public void addLineData(SimpleLineData lineData, boolean repaint)
    • getPeakPoint

      public javafx.geometry.Point2D getPeakPoint()
      Returns:
      the peakPoint
    • setPeakPoint

      public void setPeakPoint(javafx.geometry.Point2D peakPoint)
      Parameters:
      peakPoint - the peakPoint to set
    • getPeakSymbol

      public PamSymbolFX getPeakSymbol()
      Returns:
      the peakSymbol
    • setPeakSymbol

      public void setPeakSymbol(PamSymbolFX peakSymbol)
      Parameters:
      peakSymbol - the peakSymbol to set