Package dataPlotsFX.rawClipDataPlot
Class RawClipDataInfo
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.data.generic.GenericDataPlotInfo
dataPlotsFX.rawClipDataPlot.RawClipDataInfo
- Direct Known Subclasses:
ClipPlotInfoFX
,DLDetectionPlotInfoFX
Raw clip data info.
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class dataPlotsFX.data.TDDataInfoFX
TDDataInfoFX.DataLoadObserver
-
Field Summary
Fields inherited from class dataPlotsFX.data.generic.GenericDataPlotInfo
DEFAULT_FILL_OPACITY
Fields inherited from class dataPlotsFX.data.TDDataInfoFX
dataPlugIns, scaleInfoIndex
-
Constructor Summary
ConstructorDescriptionRawClipDataInfo
(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, PamDataBlock pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.shape.Polygon
drawDataUnit
(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Draw a data unit.The raw FFT plot manager.Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.Get the raw clip parameters.Get the scale info for plotting raw waveforms.The raw FFT plot manager.(non-Javadoc)double[][]
getSpectrogram
(PamDataUnit pamDataUnit, int chanClick) Get the spectrogram for a raw clip.Get an object that will be packed up with the serialised settings when information about a plot get's stored.Get click symbol chooser.void
lastUnitDrawn
(javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int plotnumber) Indicates that the last data unit has been drawn.void
notifyChange
(int changeType) Notify of changes from PamController.boolean
setStoredSettings
(Serializable storedSettings) Set settings which have been read back from storage (the psf file).void
Methods inherited from class dataPlotsFX.data.generic.GenericDataPlotInfo
createSymbolChooser, drawFrequencyData, getAmplitudeScaleInfo, getAmplitudeValue, getBearingScaleInfo, getBearingValue, getDataValue, getFrequencyScaleInfo, getSlantScaleInfo, getSlantValue, setCurrentAxisName
Methods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, clearDraw, drawAllDataUnits, drawData, drawHighLightData, editOptions, getCurrentScaleInfo, getDataBlock, getDataDimensions, getDataName, getDataObserver, getDataProvider, getDDataProvider, getDisplayColType, getLastDrawPoints, getMasterClockOverride, getMenuNodes, getPreviousDataUnit, getRequiredDataHistory, getScaleInfo, getScaleInfoIndex, getShortName, getSourceDataBlock, getTDGraph, getToolTipText, hasAxisName, hasOptions, isPaused, isScrollChanging, isShowing, isViewer, removeData, removeScaleInfo, selectScaleInfo, setNPlotPanes, setShowing, shouldDraw, shouldDraw, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
-
Constructor Details
-
RawClipDataInfo
public RawClipDataInfo(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, PamDataBlock pamDataBlock)
-
-
Method Details
-
getRawClipParams
Get the raw clip parameters.- Returns:
- the raw clip parameters.
-
drawDataUnit
public javafx.scene.shape.Polygon drawDataUnit(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type) Description copied from class:TDDataInfoFX
Draw a data unit.- Overrides:
drawDataUnit
in classGenericDataPlotInfo
- Parameters:
pamDataUnit
- data unit to drawg
- graphicsContext handle to draw ontype
- flag for which type of symbol to draw. e.g normal or highlighted.- Returns:
- polygon of area drawn on.
-
getSpectrogram
Get the spectrogram for a raw clip.- Parameters:
pamDataUnit
- - the pam data unit. Should implement RawDataHolder.chanClick
- - the channel click- Returns:
- the double
-
getFFTplotManager
The raw FFT plot manager. Handles plotting clip spectrograms- Returns:
-
getRawWavePlotManager
The raw FFT plot manager. Handles plotting clip spectrograms- Returns:
-
notifyChange
public void notifyChange(int changeType) Description copied from class:TDDataInfoFX
Notify of changes from PamController.- Overrides:
notifyChange
in classTDDataInfoFX
- Parameters:
changeType
- - the chnage type.
-
getClipSettingsPane
-
getGraphSettingsPane
Description copied from class:TDDataInfoFX
Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.- Overrides:
getGraphSettingsPane
in classGenericDataPlotInfo
- Returns:
- sliding dialog component.
-
lastUnitDrawn
public void lastUnitDrawn(javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int plotnumber) Description copied from class:TDDataInfoFX
Indicates that the last data unit has been drawn. This can be useful in TDDataInfo's which have more bespoke drawing mechanisms.- Overrides:
lastUnitDrawn
in classTDDataInfoFX
- Parameters:
plotnumber
- - plot number i.e. which sub plot the data should be drawn on.
-
getRawScaleInfo
Get the scale info for plotting raw waveforms.- Returns:
- the scale info for raw waveforms.
-
getScaleInfos
(non-Javadoc)- Overrides:
getScaleInfos
in classGenericDataPlotInfo
- Returns:
- a list of TDScaleInfos.
- See Also:
-
getScaleInfo
- Overrides:
getScaleInfo
in classTDDataInfoFX
- Returns:
- the fixedScaleInformation
-
getSymbolChooser
Get click symbol chooser.- Overrides:
getSymbolChooser
in classGenericDataPlotInfo
- Returns:
- the click symbol chooser.
-
settingsUpdate
public void settingsUpdate() -
getStoredSettings
Description copied from class:TDDataInfoFX
Get an object that will be packed up with the serialised settings when information about a plot get's stored.
The Object MUST implement serializable and ideally also cloneable or it will go belly up !
This only gets called when settings are to be saved so there is no need to keep parameters this returns up to date except right at settings save time (when this is called)- Overrides:
getStoredSettings
in classTDDataInfoFX
- Returns:
- serializable object to save.
-
setStoredSettings
Description copied from class:TDDataInfoFX
Set settings which have been read back from storage (the psf file). Assume these are of the right type and cast into whatever is needed !- Overrides:
setStoredSettings
in classTDDataInfoFX
- Returns:
- true if all OK.
-