Package beamformer.plot
Class BeamOGramPlotInfo
java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.scrollingPlot2D.Scrolling2DPlotInfo
beamformer.plot.BeamOGramPlotInfo
- All Implemented Interfaces:
Plot2DColours
-
Nested Class Summary
Nested classes/interfaces inherited from class dataPlotsFX.data.TDDataInfoFX
TDDataInfoFX.DataLoadObserver
-
Field Summary
Fields inherited from class dataPlotsFX.data.TDDataInfoFX
dataPlugIns, scaleInfoIndex
-
Constructor Summary
ConstructorDescriptionBeamOGramPlotInfo
(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, BeamFormerBaseControl beamFormerControl, DataBlock2D pamDataBlock) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Set up binding between display and control panels.Create plot params.createTDScaleInfo
(Scrolling2DPlotInfo scrolingPlotinfo, double minVal, double maxVal) Create a bespoke scale info object reflecting the right type of axis informationvoid
drawData
(int plotNumber, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector) Paint data into the graphics window.getDataValue
(PamDataUnit pamDataUnit) Gets a value for a specific data unit which should be in the same units as the scale information.Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.Get an object that will be packed up with the serialised settings when information about a plot get's stored.makeScrolling2DPlotData
(int iChannel) Put this into a function so that if a display needs to extend the Spectrogram2DPlotdata class in any way, it can easily do so.boolean
setStoredSettings
(Serializable storedSettings) Set settings which have been read back from storage (the psf file).Methods inherited from class dataPlotsFX.scrollingPlot2D.Scrolling2DPlotInfo
configureDisplay, finalConfigurationTasks, getColours, getDataAxisMaxVal, getDataAxisMinVal, getDataBlock2D, getDisplayColType, getNActivePanels, getnRebuiltPanels, getPlot2DParameters, getRequiredDataHistory, getScaleInfo, getScaleInfo, getSpectrogramColours, getWrapColor, hasOptions, new2DData, reColourPlots, removeData, setDisplayedDataRange, setnRebuiltPanels, setPlot2DParameters, setSampleRate, setSpectrogramColours, timeRangeSpinnerChange, timeScrollRangeChanged, timeScrollValueChanged
Methods inherited from class dataPlotsFX.data.TDDataInfoFX
addScaleInfo, clearDraw, drawAllDataUnits, drawDataUnit, drawHighLightData, editOptions, getCurrentScaleInfo, getDataBlock, getDataDimensions, getDataName, getDataObserver, getDataProvider, getDDataProvider, getLastDrawPoints, getMasterClockOverride, getMenuNodes, getPreviousDataUnit, getScaleInfoIndex, getScaleInfos, getShortName, getSourceDataBlock, getTDGraph, getToolTipText, hasAxisName, isPaused, isScrollChanging, isShowing, isViewer, lastUnitDrawn, notifyChange, removeScaleInfo, selectScaleInfo, setCurrentAxisName, setNPlotPanes, setShowing, shouldDraw, shouldDraw
-
Constructor Details
-
BeamOGramPlotInfo
public BeamOGramPlotInfo(TDDataProviderFX tdDataProvider, TDGraphFX tdGraph, BeamFormerBaseControl beamFormerControl, DataBlock2D pamDataBlock)
-
-
Method Details
-
createTDScaleInfo
public TDScaleInfo createTDScaleInfo(Scrolling2DPlotInfo scrolingPlotinfo, double minVal, double maxVal) Description copied from class:Scrolling2DPlotInfo
Create a bespoke scale info object reflecting the right type of axis information- Specified by:
createTDScaleInfo
in classScrolling2DPlotInfo
- Returns:
- Scale informatoin.
-
makeScrolling2DPlotData
Description copied from class:Scrolling2DPlotInfo
Put this into a function so that if a display needs to extend the Spectrogram2DPlotdata class in any way, it can easily do so.- Overrides:
makeScrolling2DPlotData
in classScrolling2DPlotInfo
- Parameters:
iChannel
- channel number- Returns:
- plot information.
-
getGraphSettingsPane
Description copied from class:TDDataInfoFX
Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.- Overrides:
getGraphSettingsPane
in classTDDataInfoFX
- Returns:
- sliding dialog component.
-
drawData
public void drawData(int plotNumber, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector) Description copied from class:TDDataInfoFX
Paint data into the graphics window.- Overrides:
drawData
in classScrolling2DPlotInfo
- Parameters:
plotNumber
- plot numberg
- graphics
-
getDataValue
Description copied from class:TDDataInfoFX
Gets a value for a specific data unit which should be in the same units as the scale information. This will then be converted into a plot position by the TDGraph.- Overrides:
getDataValue
in classScrolling2DPlotInfo
- Returns:
- data value or null if this data point should not be plotted.
-
getSymbolChooser
- Overrides:
getSymbolChooser
in classScrolling2DPlotInfo
- Returns:
- a class containing functions to chose a symbol to plot.
-
createPlotParams
Description copied from class:Scrolling2DPlotInfo
Create plot params. These will generally be extensions o f PlotParams2D to include additional information required by specific plot types.- Specified by:
createPlotParams
in classScrolling2DPlotInfo
- Returns:
- params controlling the plot.
-
bindPlotParams
public void bindPlotParams()Description copied from class:Scrolling2DPlotInfo
Set up binding between display and control panels. Amplitude params / scales are handled in the base class, but here will need to do the frequency scale for spectrograms and whatever required for other display types.- Specified by:
bindPlotParams
in classScrolling2DPlotInfo
-
setStoredSettings
Description copied from class:Scrolling2DPlotInfo
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 classScrolling2DPlotInfo
- Returns:
- true if all OK.
-
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 classScrolling2DPlotInfo
- Returns:
- serializable object to save.
-