Class WaterfallSpecPlot<D extends DetectionGroupDataUnit>

java.lang.Object
detectionPlotFX.plots.FFTPlot<D>
detectionPlotFX.plots.RawFFTPlot<D>
detectionPlotFX.clickTrainDDPlot.WaterfallSpecPlot<D>
Type Parameters:
D - - the super detection type
All Implemented Interfaces:
DetectionPlot<D>

public class WaterfallSpecPlot<D extends DetectionGroupDataUnit> extends RawFFTPlot<D>
Waterfall spectrogram plot for super detections detections which have sub detections that can provide FFT data.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • paintPlot

      public void paintPlot(D ctDataUnit, javafx.scene.canvas.GraphicsContext graphicsContext, javafx.scene.shape.Rectangle rectangle, DetectionPlotProjector projector, int flag)
      Description copied from interface: DetectionPlot
      Plot the relevent data from a detection.
      Specified by:
      paintPlot in interface DetectionPlot<D extends DetectionGroupDataUnit>
      Overrides:
      paintPlot in class RawFFTPlot<D extends DetectionGroupDataUnit>
      Parameters:
      ctDataUnit - - the data of every channel. e.g. might be a waveform with each point representing a sample.
      graphicsContext - - the graphics handle to draw on.
    • setupAxis

      public void setupAxis(D pamDetection, double sR, DetectionPlotProjector projector)
      Description copied from interface: DetectionPlot
      Setup the axis. This is called before paintPlot. Ensures axis are correct values
      Specified by:
      setupAxis in interface DetectionPlot<D extends DetectionGroupDataUnit>
      Overrides:
      setupAxis in class RawFFTPlot<D extends DetectionGroupDataUnit>
      Parameters:
      pamDetection - - the data of every channel. e.g. might be a waveform with each point representing a sample.
      sR - - the sample rate. Primarily used to convert bins into time values.
    • getFFTdata

      public DataUnit2D getFFTdata(PamDataUnit dataUnit, int fftLen, int channel)
      Get the FFT data for a data unit.
      Parameters:
      dataUnit - - the data unit to extract FFT data from
      fftLen - - the desired fft length.
    • paintDetections

      public void paintDetections(D detection, javafx.scene.canvas.GraphicsContext graphicsContext, javafx.scene.shape.Rectangle windowRect, DetectionPlotProjector projector)
      Description copied from class: RawFFTPlot
      Paint the detection over the FFT.
      Specified by:
      paintDetections in class RawFFTPlot<D extends DetectionGroupDataUnit>
      Parameters:
      graphicsContext - - the graphics handle
      windowRect - - the window rectangle in pixels