Package detectionPlotFX.rawDDPlot
Class RawHolderFFTPlot
- All Implemented Interfaces:
DetectionPlot<PamDataUnit>
Plots the FFT of stored acoustic data.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class detectionPlotFX.plots.FFTPlot
FFTPlot.SimpleFFTDataUnit
-
Field Summary
Fields inherited from interface detectionPlotFX.layout.DetectionPlot
SCROLLPANE_DRAW, STANDARD_DRAW
-
Constructor Summary
ConstructorDescriptionRawHolderFFTPlot
(DetectionPlotDisplay displayPlot, DetectionPlotProjector projector) -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
getSpectrogram
(PamDataUnit pamDetection, int fftLen, int fftHop, int windowType) Get the spectrogram image from the data unit.void
paintDetections
(PamDataUnit detection, javafx.scene.canvas.GraphicsContext graphicsContext, javafx.scene.shape.Rectangle windowRect, DetectionPlotProjector projector) Paint the detection over the FFT.void
paintPlot
(PamDataUnit data, javafx.scene.canvas.GraphicsContext gc, javafx.scene.shape.Rectangle rectangle, DetectionPlotProjector projector, int flag) Plot the relevent data from a detection.Methods inherited from class detectionPlotFX.plots.FFTPlot
createPlotParams, enableTimeSpinner, getFFTParams, getName, getSettingsPane, isUseKHz, reDrawLastUnit, setFFTParams, settingsChanged, setupAxis, setupFreqAxis, setupPlot, setUpTimeAxis
-
Constructor Details
-
RawHolderFFTPlot
-
-
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 classFFTPlot<PamDataUnit>
- Parameters:
graphicsContext
- - the graphics handlewindowRect
- - the window rectangle in pixels
-
getSpectrogram
Description copied from class:FFTPlot
Get the spectrogram image from the data unit.- Specified by:
getSpectrogram
in classFFTPlot<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 interfaceDetectionPlot<PamDataUnit>
- Overrides:
paintPlot
in classFFTPlot<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.
-