Package dataPlotsFX.clickPlotFX
Class ClickFFTPlotManager2
java.lang.Object
dataPlotsFX.data.FFTPlotManager
dataPlotsFX.clickPlotFX.ClickFFTPlotManager2
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
 
- 
Field Summary
Fields inherited from class dataPlotsFX.data.FFTPlotManager
detection, ffColor - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoiddrawClickFFT(double[] spectrum, double timeMillis, double maxFreq, ScrollingImageSegmenter.WritableImageSegment writableImage) Draw a single click FFTvoiddrawDataUnit(javafx.scene.canvas.GraphicsContext g, PamDataUnit pamDataUnit, ScrollingImageSegmenter.WritableImageSegment writableImage, TDProjectorFX tdProjector, double scrolLStart, int chanClick) Draw the data unit on a writeable image segment.Get the FFT parameters for the display.Get the frequency scale info for the TDScaleInfoFX.double[][]getSpectrogram(PamDataUnit pamDataUnit, int chanClk) Get the spectrogram from a data unit based on the FFT settingsMethods inherited from class dataPlotsFX.data.FFTPlotManager
clear, drawClipFFT, drawClipSpectrogram, fftAmplitude2dB, lastUnitDrawn, update 
- 
Constructor Details
- 
ClickFFTPlotManager2
The click plot info.- Parameters:
 clickPlotInfoFX-
 
 - 
 - 
Method Details
- 
getFFTPlotParams
Description copied from class:FFTPlotManagerGet the FFT parameters for the display.- Specified by:
 getFFTPlotParamsin classFFTPlotManager- Returns:
 - the FFT parameters.
 
 - 
getFrequencyScaleInfo
Description copied from class:FFTPlotManagerGet the frequency scale info for the TDScaleInfoFX.- Specified by:
 getFrequencyScaleInfoin classFFTPlotManager- 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:FFTPlotManagerDraw the data unit on a writeable image segment. This function can be overriden for more options on drawing.- Overrides:
 drawDataUnitin classFFTPlotManager- Parameters:
 g- - the graphics contextpamDataUnit- - 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 handletC- -the time in pixelstdProjector- - the projector
 - 
getSpectrogram
Description copied from class:FFTPlotManagerGet the spectrogram from a data unit based on the FFT settings- Specified by:
 getSpectrogramin classFFTPlotManager- 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.
 
 
 -