Package PamController

Class PamGUIManager

java.lang.Object
PamController.PamGUIManager

public class PamGUIManager extends Object
Manages references which indicate which GUI PAMGuard is using.
Author:
Jamie Macaulay
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Flag for the swing GUI.
    static final int
    Flag for the swing GUI.
    static final int
    Flag for the JavaFX GUI.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createGUI(PamController pamController, Object object)
    Create the GUI (or not)
    static int
    Get the GUI type flag.
    static boolean
    Convenience function to check whether the swing is the FX gui.
    static boolean
    Convenience function to test whether the swing GUI is being used.
    static void
    setType(int guiType)
    Set the type.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PamGUIManager

      public PamGUIManager()
  • Method Details

    • createGUI

      public static PAMControllerGUI createGUI(PamController pamController, Object object)
      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.