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
Constructors - 
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 detectionvoidpaintPlot(PamDataUnit data, javafx.scene.canvas.GraphicsContext gc, javafx.scene.shape.Rectangle rectangle, DetectionPlotProjector projector, int flag) Plot the relevent data from a detection.voidsetupAxis(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:DetectionPlotSetup the axis. This is called before paintPlot. Ensures axis are correct values- Specified by:
 setupAxisin interfaceDetectionPlot<PamDataUnit>- Overrides:
 setupAxisin 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:SpectrumPlotGet the power spectrum for the detection- Specified by:
 getPowerSpectrumin classSpectrumPlot<PamDataUnit>- Parameters:
 newClick- - the pamDetection- Returns:
 - the power spectrum for each channel.
 
 - 
getCepstrum
Description copied from class:SpectrumPlotGet the cepstrum for the detection- Specified by:
 getCepstrumin 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:DetectionPlotPlot the relevent data from a detection.- Specified by:
 paintPlotin interfaceDetectionPlot<PamDataUnit>- Overrides:
 paintPlotin 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.
 
 -