Class RawHolderFFTPlot

java.lang.Object
detectionPlotFX.plots.FFTPlot<PamDataUnit>
detectionPlotFX.rawDDPlot.RawHolderFFTPlot
All Implemented Interfaces:
DetectionPlot<PamDataUnit>

public class RawHolderFFTPlot extends FFTPlot<PamDataUnit>
Plots the FFT of stored acoustic data.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • paintDetections

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

      public double[][] getSpectrogram(PamDataUnit pamDetection, int fftLen, int fftHop, int windowType)
      Description copied from class: FFTPlot
      Get the spectrogram image from the data unit.
      Specified by:
      getSpectrogram in class FFTPlot<PamDataUnit>
      Parameters:
      pamDetection - - the spectrogram image.
      Returns:
      the spectrogram image.
    • paintPlot

      public void paintPlot(PamDataUnit data, javafx.scene.canvas.GraphicsContext gc, 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<PamDataUnit>
      Overrides:
      paintPlot in class FFTPlot<PamDataUnit>
      Parameters:
      data - - the data of every channel. e.g. might be a waveform with each point representing a sample.
      gc - - the graphics handle to draw on.