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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the node is removed from the display.Get the display provider params.getName()The name of display.javafx.scene.layout.RegiongetNode()Get the node to add to the display.Get a display controller associated with the display.booleanOnly used for automatic resizing.booleanCheck whether a display can be resized within PAMGuard.booleanCheck whether a pane is static.voidnotifyModelChanged(int changeType) Pick up model changed notifications from a parent user display.voidopenNode()Called when the component is first displayed.booleanCalled when node settings pane is requested from another program.voidsetFrameHolder(PamInternalPane internalFrame) Called whenever the display is added to a frame. 
- 
Constructor Details
- 
SwingDisplayNodeFX
 
 - 
 - 
Method Details
- 
getName
Description copied from interface:UserDisplayNodeFXThe name of display. Used for default tabs etc.- Specified by:
 getNamein interfaceUserDisplayNodeFX- Returns:
 - the name of the display
 
 - 
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
 
 - 
openNode
public void openNode()Description copied from interface:UserDisplayNodeFXCalled when the component is first displayed.- Specified by:
 openNodein interfaceUserDisplayNodeFX
 - 
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.
 
 - 
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.
 
 - 
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-
 - 
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.
 
 - 
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.
 - 
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.
 
 
 -