Class ClickFFTPlotManager2

java.lang.Object
dataPlotsFX.data.FFTPlotManager
dataPlotsFX.clickPlotFX.ClickFFTPlotManager2

public class ClickFFTPlotManager2 extends FFTPlotManager
Handles efficiently plotting click FFT's on the frequency axis. This can be used to visualise longer clicks, for example, bat calls.

Warning: this display does not work if there are not unique UID values for clicks.

Author:
Jamie Macaulay
  • Constructor Details

    • ClickFFTPlotManager2

      public ClickFFTPlotManager2(ClickPlotInfoFX clickPlotInfoFX)
      The click plot info.
      Parameters:
      clickPlotInfoFX -
  • Method Details

    • getFFTPlotParams

      public FFTPlotSettings getFFTPlotParams()
      Description copied from class: FFTPlotManager
      Get the FFT parameters for the display.
      Specified by:
      getFFTPlotParams in class FFTPlotManager
      Returns:
      the FFT parameters.
    • getFrequencyScaleInfo

      public TDScaleInfo getFrequencyScaleInfo()
      Description copied from class: FFTPlotManager
      Get the frequency scale info for the TDScaleInfoFX.
      Specified by:
      getFrequencyScaleInfo in class FFTPlotManager
      Returns:
      the frequency scale info.
    • drawDataUnit

      public void drawDataUnit(javafx.scene.canvas.GraphicsContext g, PamDataUnit pamDataUnit, ScrollingImageSegmenter.WritableImageSegment writableImage, TDProjectorFX tdProjector, double scrolLStart, int chanClick)
      Description copied from class: FFTPlotManager
      Draw the data unit on a writeable image segment. This function can be overriden for more options on drawing.
      Overrides:
      drawDataUnit in class FFTPlotManager
      Parameters:
      g - - the graphics context
      pamDataUnit - - the data unit to draw.
      writableImage - - the writiable image.
      tdProjector - - the projector.
      scrolLStart - - the start of the scroller.
      chanClick - - the channel of the data unit to plot. This is the relative, not the absolute channel
    • drawClickFFT

      public void drawClickFFT(double[] spectrum, double timeMillis, double maxFreq, ScrollingImageSegmenter.WritableImageSegment writableImage)
      Draw a single click FFT
      Parameters:
      spectrum - - the click spectrum in FFT bins.
      maxFreq - - the max frequency in Hz;
      g - - the graphics handle
      tC - -the time in pixels
      tdProjector - - the projector
    • getSpectrogram

      public double[][] getSpectrogram(PamDataUnit pamDataUnit, int chanClk)
      Description copied from class: FFTPlotManager
      Get the spectrogram from a data unit based on the FFT settings
      Specified by:
      getSpectrogram in class FFTPlotManager
      Parameters:
      pamDataUnit - - the data unit.
      chanClk - - the spectrogram channel - this is the realtive channel within the data unit. Not the absolute channel.
      Returns:
      the absolute spectrogram data.