Package dataPlotsFX
Class TDControlFX
java.lang.Object
dataPlotsFX.TDControl
dataPlotsFX.TDControlFX
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider,UserDisplayNodeFX
The controller for the display if the main PAMGuard GUI is in JavaFX mode.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class dataPlotsFX.TDControl
tdMainDisplay - 
Constructor Summary
ConstructorsConstructorDescriptionTDControlFX(TDDisplayController tdDisplayController, String uniqueDisplayName) Constructor for the TDControlFX. - 
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the node is removed from the display.voidGet currently displayed data blocks in the display and set them as the parent data blocks in the display process.protected voiddisplayToDataModel(ArrayList<PamDataBlock> displayDataBlocks) Set the display to show data blocks set in the data model- i.e.dataPlotsFX.TDControlFX.DataObserverGet the data observer- monitors incoming real time data an updates graphs.Get the display provider params.getName()The name of display.javafx.scene.layout.RegiongetNode()Get the node to add to the display.doubleGet a display controller associated with the display.doublebooleanOnly used for automatic resizing.booleanisPaused()In real time mode check if PAMGUARD is paused.booleanCheck whether a display can be resized within PAMGuard.booleanCheck whether a pane is static.voidnewSelectedDetectionGroup(DetectionGroupSummary detectionGroup, TDGraphFX tdGraph) A new detection group has been selected.voidnotifyModelChanged(int changeType) Pick up model changed notifications from a parent user display.voidopenNode()Called when the component is first displayed.protected SerializableCalled just before settings are saved.voidCalled whenever process settings have changedbooleanCalled when node settings pane is requested from another program.voidscrollDisplayEnd(long milliSeconds) voidsetFrameHolder(PamInternalPane internalFrame) Called whenever the display is added to a frame.Methods inherited from class dataPlotsFX.TDControl
addDataBlock, getSettingsReference, getSettingsVersion, getTDDisplay, getTdParameters, getUniqueName, getUnitName, getUnitType, isRunning, isStopped, isViewer, removeTDDataInfo, restoreSettings, setTDDisplay, setUniqueName, updateProviderRegister 
- 
Constructor Details
- 
TDControlFX
Constructor for the TDControlFX.- Parameters:
 tdDisplayController- - reference to the display controller.uniqueDisplayName- - the unique display name
 
 - 
 - 
Method Details
- 
getNode
public javafx.scene.layout.Region getNode()Description copied from interface:UserDisplayNodeFXGet the node to add to the display.- Specified by:
 getNodein interfaceUserDisplayNodeFX- Returns:
 - The FX node to add to the display
 
 - 
getScrollableRange
public double getScrollableRange() - 
getVisibleRange
public double getVisibleRange() - 
scrollDisplayEnd
public void scrollDisplayEnd(long milliSeconds)  - 
dataModelToDisplay
public void dataModelToDisplay()Get currently displayed data blocks in the display and set them as the parent data blocks in the display process.- Overrides:
 dataModelToDisplayin classTDControl
 - 
displayToDataModel
Set the display to show data blocks set in the data model- i.e. show it's parent data blocks. Iterates through all TDDataInfoFX (a PamDataBlock wrapper) currently displayed. If any TDDataInfo does not have a data block in the displayDataBlocks it is deleted. If any PamDataBlock in the list does not have a corresponding TDDataInfoFX then a new TDDataINfoFX is created and added to a new TDGraphFX in the main display. - 
processSettingsChanged
public void processSettingsChanged()Called whenever process settings have changed - 
getDataObserver
public dataPlotsFX.TDControlFX.DataObserver getDataObserver()Get the data observer- monitors incoming real time data an updates graphs.- Specified by:
 getDataObserverin classTDControl- Returns:
 - data observer
 
 - 
openNode
public void openNode()Description copied from interface:UserDisplayNodeFXCalled when the component is first displayed.- Specified by:
 openNodein interfaceUserDisplayNodeFX
 - 
closeNode
public void closeNode()Description copied from interface:UserDisplayNodeFXCalled when the node is removed from the display.- Specified by:
 closeNodein interfaceUserDisplayNodeFX
 - 
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from interface:UserDisplayNodeFXPick up model changed notifications from a parent user display.- Specified by:
 notifyModelChangedin interfaceUserDisplayNodeFX- Parameters:
 changeType-
 - 
isPaused
public boolean isPaused()In real time mode check if PAMGUARD is paused. - 
requestNodeSettingsPane
public boolean requestNodeSettingsPane()Description copied from interface:UserDisplayNodeFXCalled when node settings pane is requested from another program. Note that the design of displays is such that settings are shown in the display itself, usually with a sliding pane or something similar revealed. Hence, this function should not be used to grab a pane to put in a dialog.- Specified by:
 requestNodeSettingsPanein interfaceUserDisplayNodeFX- Returns:
 - true if the pane can show settings.
 
 - 
isStaticDisplay
public boolean isStaticDisplay()Description copied from interface:UserDisplayNodeFXCheck whether a pane is static. If the pane is static then it cannot be removed from PAMGuard, it cannot be resized and no other user display can be added to the tab. This is rarely used.- Specified by:
 isStaticDisplayin interfaceUserDisplayNodeFX- Returns:
 - true if the pane cannot be removed from the view.
 
 - 
isResizeableDisplay
public boolean isResizeableDisplay()Description copied from interface:UserDisplayNodeFXCheck whether a display can be resized within PAMGuard.- Specified by:
 isResizeableDisplayin interfaceUserDisplayNodeFX- Returns:
 - true of the pane can be resized.
 
 - 
getName
Description copied from interface:UserDisplayNodeFXThe name of display. Used for default tabs etc.- Specified by:
 getNamein interfaceUserDisplayNodeFX- Returns:
 - the name of the display
 
 - 
isMinorDisplay
public boolean isMinorDisplay()Description copied from interface:UserDisplayNodeFXOnly used for automatic resizing. Minor displays are automatically made smaller- Specified by:
 isMinorDisplayin interfaceUserDisplayNodeFX- Returns:
 - true if a minor display.
 
 - 
prepareSerialisedSettings
Called just before settings are saved. Will have to go through all the graphs and get them to provide updated settings information to add to this since it's not kept up to date on the fly.- Overrides:
 prepareSerialisedSettingsin classTDControl- Returns:
 - object to serialise.
 
 - 
getDisplayParams
Description copied from interface:UserDisplayNodeFXGet the display provider params.- Specified by:
 getDisplayParamsin interfaceUserDisplayNodeFX- Returns:
 - display params.
 
 - 
setFrameHolder
Description copied from interface:UserDisplayNodeFXCalled whenever the display is added to a frame.- Specified by:
 setFrameHolderin interfaceUserDisplayNodeFX- Parameters:
 internalFrame- - the internal frame.
 - 
newSelectedDetectionGroup
Description copied from class:TDControlA new detection group has been selected.- Overrides:
 newSelectedDetectionGroupin classTDControl- Parameters:
 detectionGroup- - the detection group that has been selected
 - 
getUserDisplayControl
Description copied from interface:UserDisplayNodeFXGet a display controller associated with the display. Note that a display does not need a controller so this can return null.- Specified by:
 getUserDisplayControlin interfaceUserDisplayNodeFX- Returns:
 - the associated control for the display.
 
 
 -