Package detectionPlotFX.clickTrainDDPlot
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>
Waterfall spectrogram plot for super detections detections which have sub detections
that can provide FFT data.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class detectionPlotFX.plots.RawFFTPlot
RawFFTPlot.FreqTimeProjector, RawFFTPlot.SimpleFFTDataBlock, RawFFTPlot.SimpleFFTDataUnit
-
Field Summary
Fields inherited from interface detectionPlotFX.layout.DetectionPlot
SCROLLPANE_DRAW, STANDARD_DRAW
-
Constructor Summary
ConstructorDescriptionWaterfallSpecPlot
(DetectionPlotDisplay displayPlot, DetectionPlotProjector projector) -
Method Summary
Modifier and TypeMethodDescriptiongetFFTdata
(PamDataUnit dataUnit, int fftLen, int channel) Get the FFT data for a data unit.void
paintDetections
(D detection, javafx.scene.canvas.GraphicsContext graphicsContext, javafx.scene.shape.Rectangle windowRect, DetectionPlotProjector projector) Paint the detection over the FFT.void
paintPlot
(D ctDataUnit, javafx.scene.canvas.GraphicsContext graphicsContext, javafx.scene.shape.Rectangle rectangle, DetectionPlotProjector projector, int flag) Plot the relevent data from a detection.void
setupAxis
(D pamDetection, double sR, DetectionPlotProjector projector) Setup the axis.Methods inherited from class detectionPlotFX.plots.RawFFTPlot
checkSettingsChange, getFFTDataBlock, getName, getProjector, getRawDataOrder, getScrollStart, getSpectrogram, getSpectrogram, loadRawData, reDrawLastUnit, repaintSpectrogram, setFFTParams, setRawDataOrder, settingsChanged, setUpTimeAxis
Methods inherited from class detectionPlotFX.plots.FFTPlot
createPlotParams, enableTimeSpinner, getFFTParams, getSettingsPane, isUseKHz, setupFreqAxis, setupPlot
-
Constructor Details
-
WaterfallSpecPlot
-
-
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 interfaceDetectionPlot<D extends DetectionGroupDataUnit>
- Overrides:
paintPlot
in classRawFFTPlot<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
Description copied from interface:DetectionPlot
Setup the axis. This is called before paintPlot. Ensures axis are correct values- Specified by:
setupAxis
in interfaceDetectionPlot<D extends DetectionGroupDataUnit>
- Overrides:
setupAxis
in classRawFFTPlot<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
Get the FFT data for a data unit.- Parameters:
dataUnit
- - the data unit to extract FFT data fromfftLen
- - 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 classRawFFTPlot<D extends DetectionGroupDataUnit>
- Parameters:
graphicsContext
- - the graphics handlewindowRect
- - the window rectangle in pixels
-