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
-
Constructor Summary
ConstructorDescriptionTDControlFX
(TDDisplayController tdDisplayController, String uniqueDisplayName) Constructor for the TDControlFX. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the node is removed from the display.void
Get currently displayed data blocks in the display and set them as the parent data blocks in the display process.dataPlotsFX.TDControlFX.DataObserver
Get the data observer- monitors incoming real time data an updates graphs.Get the display provider params.getName()
The name of display.javafx.scene.layout.Region
getNode()
Get the node to add to the display.double
Get a display controller associated with the display.double
boolean
Only used for automatic resizing.boolean
isPaused()
In real time mode check if PAMGUARD is paused.boolean
Check whether a display can be resized within PAMGuard.boolean
Check whether a pane is static.void
newSelectedDetectionGroup
(DetectionGroupSummary detectionGroup, TDGraphFX tdGraph) A new detection group has been selected.void
notifyModelChanged
(int changeType) Pick up model changed notifications from a parent user display.void
openNode()
Called when the component is first displayed.void
Called whenever process settings have changedboolean
Called when node settings pane is requested from another program.void
scrollDisplayEnd
(long milliSeconds) void
setFrameHolder
(PamInternalPane internalFrame) Called whenever the display is added to a frame.void
Update the provider register.Methods inherited from class dataPlotsFX.TDControl
getSettingsReference, getSettingsVersion, getTdParameters, getUniqueName, getUnitName, getUnitType, isRunning, isStopped, isViewer, restoreSettings, setUniqueName
-
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:UserDisplayNodeFX
Get the node to add to the display.- Specified by:
getNode
in 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:
dataModelToDisplay
in classTDControl
-
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:
getDataObserver
in classTDControl
- Returns:
- data observer
-
openNode
public void openNode()Description copied from interface:UserDisplayNodeFX
Called when the component is first displayed.- Specified by:
openNode
in interfaceUserDisplayNodeFX
-
closeNode
public void closeNode()Description copied from interface:UserDisplayNodeFX
Called when the node is removed from the display.- Specified by:
closeNode
in interfaceUserDisplayNodeFX
-
notifyModelChanged
public void notifyModelChanged(int changeType) Description copied from interface:UserDisplayNodeFX
Pick up model changed notifications from a parent user display.- Specified by:
notifyModelChanged
in interfaceUserDisplayNodeFX
-
isPaused
public boolean isPaused()In real time mode check if PAMGUARD is paused. -
requestNodeSettingsPane
public boolean requestNodeSettingsPane()Description copied from interface:UserDisplayNodeFX
Called 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:
requestNodeSettingsPane
in interfaceUserDisplayNodeFX
- Returns:
- true if the pane can show settings.
-
isStaticDisplay
public boolean isStaticDisplay()Description copied from interface:UserDisplayNodeFX
Check 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:
isStaticDisplay
in interfaceUserDisplayNodeFX
- Returns:
- true if the pane cannot be removed from the view.
-
isResizeableDisplay
public boolean isResizeableDisplay()Description copied from interface:UserDisplayNodeFX
Check whether a display can be resized within PAMGuard.- Specified by:
isResizeableDisplay
in interfaceUserDisplayNodeFX
- Returns:
- true of the pane can be resized.
-
getName
Description copied from interface:UserDisplayNodeFX
The name of display. Used for default tabs etc.- Specified by:
getName
in interfaceUserDisplayNodeFX
- Returns:
- the name of the display
-
isMinorDisplay
public boolean isMinorDisplay()Description copied from interface:UserDisplayNodeFX
Only used for automatic resizing. Minor displays are automatically made smaller- Specified by:
isMinorDisplay
in interfaceUserDisplayNodeFX
- Returns:
- true if a minor display.
-
updateProviderRegister
public void updateProviderRegister()Update the provider register. This removes any data block which no longer exist in the data model. -
getDisplayParams
Description copied from interface:UserDisplayNodeFX
Get the display provider params.- Specified by:
getDisplayParams
in interfaceUserDisplayNodeFX
- Returns:
- display params.
-
setFrameHolder
Description copied from interface:UserDisplayNodeFX
Called whenever the display is added to a frame.- Specified by:
setFrameHolder
in interfaceUserDisplayNodeFX
- Parameters:
internalFrame
- - the internal frame.
-
newSelectedDetectionGroup
Description copied from class:TDControl
A new detection group has been selected.- Overrides:
newSelectedDetectionGroup
in classTDControl
- Parameters:
detectionGroup
- - the detection group that has been selected
-
getUserDisplayControl
Description copied from interface:UserDisplayNodeFX
Get a display controller associated with the display. Note that a display does not need a controller so this can return null.- Specified by:
getUserDisplayControl
in interfaceUserDisplayNodeFX
- Returns:
- the associated control for the display.
-