Package userDisplayFX
Class SwingDisplayNodeFX
java.lang.Object
userDisplayFX.SwingDisplayNodeFX
- All Implemented Interfaces:
UserDisplayNodeFX
A user display which is based on a swing component.
- Author:
- Jamie Macaulay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the node is removed from the display.Get the display provider params.getName()
The name of display.javafx.scene.layout.Region
getNode()
Get the node to add to the display.Get a display controller associated with the display.boolean
Only used for automatic resizing.boolean
Check whether a display can be resized within PAMGuard.boolean
Check whether a pane is static.void
notifyModelChanged
(int changeType) Pick up model changed notifications from a parent user display.void
openNode()
Called when the component is first displayed.boolean
Called when node settings pane is requested from another program.void
setFrameHolder
(PamInternalPane internalFrame) Called whenever the display is added to a frame.
-
Constructor Details
-
SwingDisplayNodeFX
-
-
Method Details
-
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
-
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
-
openNode
public void openNode()Description copied from interface:UserDisplayNodeFX
Called when the component is first displayed.- Specified by:
openNode
in interfaceUserDisplayNodeFX
-
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.
-
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.
-
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
-
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.
-
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.
-
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.
-