Class PamDefaultStyle

java.lang.Object
pamViewFX.fxStyles.PamDefaultStyle
Direct Known Subclasses:
PamAtlantaStyle

public class PamDefaultStyle extends Object
Class defining the default CSS Style sheets to use for JavaFX displays. This class can be extended and one or more methods overridden to specify new CSS styles. Style sheets can be specified for 3 different categories: sliding dialogs, regular dialogs, and all other components (incl. displays, etc). In addition, each category can have a style sheet to use for daytime mode and one to use for nighttime mode. The relative URI paths to the individual style sheets are specified as private fields, and accessed through public methods. The day/night switch is based on the name of the current PamColors colour scheme being used.
Author:
mo55, Jamie Macaulay
  • Field Details Link icon

    • guiCSS Link icon

      protected String guiCSS
      Relative location of the CSS style sheet to be used for the Pamguard GUI (but not dialogs)
    • guiCSSNightMode Link icon

      protected String guiCSSNightMode
      Relative location of the CSS style sheet to be used for the Pamguard GUI when in night mode. If there is not a style sheet specific to night mode, set it to null or point back to the guiCSS field.
    • dialogCSS Link icon

      protected String dialogCSS
      Relative location of the CSS style sheet to be used for the Pamguard standard dialogs
    • dialogCSSNightMode Link icon

      protected String dialogCSSNightMode
      Relative location of the CSS style sheet to be used for the Pamguard std dialogs when in night mode. If there is not a style sheet specific to night mode, set it to null or point back to the dialogCSS field.
    • slidingDialogCSS Link icon

      protected String slidingDialogCSS
      Relative location of the CSS style sheet to be used for the Pamguard sliding dialogs
    • slidingDialogCSSNightMode Link icon

      protected String slidingDialogCSSNightMode
      Relative location of the CSS style sheet to be used for the Pamguard sliding dialogs when in night mode. If there is not a style sheet specific to night mode, set it to null or point back to the slidingDialogCSS field.
  • Constructor Details Link icon

    • PamDefaultStyle Link icon

      public PamDefaultStyle()
  • Method Details Link icon

    • getGUICSS Link icon

      public ArrayList<String> getGUICSS()

      Return the CSS Style sheet to be used for the Pamguard GUI (displays and such) but not the dialogs.

      If overriding this method, do not simply return a URI String. In order for the String to be in the proper format, the getClass.getResource... method should be used.

      Returns:
      an array of Strings of the class containing the URI of the CSS style sheet to use
    • getDialogCSS Link icon

      public ArrayList<String> getDialogCSS()

      Return the CSS Style sheet to be used for the Pamguard settings dialogs.

      If overriding this method, do not simply return a URI String. In order for the String to be in the proper format, the getClass.getResource... method should be used.

      Returns:
      an array of Strings of the class containing the URI of the CSS style sheet to use
    • getSlidingDialogCSS Link icon

      public ArrayList<String> getSlidingDialogCSS()

      Return the CSS Style sheet to be used for the Pamguard sliding dialogs.

      If overriding this method, do not simply return a URI String. In order for the String to be in the proper format, the getClass.getResource... method should be used.

      Returns:
      an array of Strings of the class containing the URI of the CSS style sheet to use