Package PamController
Class PamGUIManager
java.lang.Object
PamController.PamGUIManager
Manages references which indicate which GUI PAMGuard is using.
- Author:
- Jamie Macaulay
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PAMControllerGUI
createGUI
(PamController pamController, Object object) Create the GUI (or not)static int
Get the GUI type flag.static boolean
isFX()
Convenience function to check whether the swing is the FX gui.static boolean
isSwing()
Convenience function to test whether the swing GUI is being used.static void
setType
(int guiType) Set the type.
-
Field Details
-
NOGUI
public static final int NOGUIFlag for the swing GUI.- See Also:
-
SWING
public static final int SWINGFlag for the JavaFX GUI.- See Also:
-
FX
public static final int FXFlag for the swing GUI.- See Also:
-
-
Constructor Details
-
PamGUIManager
public PamGUIManager()
-
-
Method Details
-
createGUI
Create the GUI (or not) -
setType
public static void setType(int guiType) Set the type.- Parameters:
guiType
- - the gui type flag.
-
getGUIType
public static int getGUIType()Get the GUI type flag.- Returns:
-
isSwing
public static boolean isSwing()Convenience function to test whether the swing GUI is being used.- Returns:
- true if the swing GUI is being used.
-
isFX
public static boolean isFX()Convenience function to check whether the swing is the FX gui.- Returns:
- true if the FX gui is being used.
-