Package detectionPlotFX.rawDDPlot
Class RawSpectrumPlot
- All Implemented Interfaces:
DetectionPlot<PamDataUnit>
Implementation of the spectrum plot for any data unit that impleements raw data holder.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from interface detectionPlotFX.layout.DetectionPlot
SCROLLPANE_DRAW, STANDARD_DRAW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble[][]
getCepstrum
(PamDataUnit newClick, int min, int max) Get the cepstrum for the detectiondouble[][]
getPowerSpectrum
(PamDataUnit newClick, int min, int max) Get the power spectrum for the detectionvoid
paintPlot
(PamDataUnit data, javafx.scene.canvas.GraphicsContext gc, javafx.scene.shape.Rectangle rectangle, DetectionPlotProjector projector, int flag) Plot the relevent data from a detection.void
setupAxis
(PamDataUnit data, double sR, DetectionPlotProjector plotProjector) Setup the axis.Methods inherited from class detectionPlotFX.plots.SpectrumPlot
drawLogSpectrum, getName, getSampleRate, getSettingsPane, getSpectrumParams, isFillSpectrum, reDrawLastUnit, setFillSpectrum, setupPlot
-
Constructor Details
-
RawSpectrumPlot
-
-
Method Details
-
setupAxis
Description copied from interface:DetectionPlot
Setup the axis. This is called before paintPlot. Ensures axis are correct values- Specified by:
setupAxis
in interfaceDetectionPlot<PamDataUnit>
- Overrides:
setupAxis
in classSpectrumPlot<PamDataUnit>
- Parameters:
data
- - 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.
-
getPowerSpectrum
Description copied from class:SpectrumPlot
Get the power spectrum for the detection- Specified by:
getPowerSpectrum
in classSpectrumPlot<PamDataUnit>
- Parameters:
newClick
- - the pamDetection- Returns:
- the power spectrum for each channel.
-
getCepstrum
Description copied from class:SpectrumPlot
Get the cepstrum for the detection- Specified by:
getCepstrum
in classSpectrumPlot<PamDataUnit>
- Parameters:
newClick
- - the pamDetection- Returns:
- the cepstrum for each channel.
-
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 classSpectrumPlot<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.
-