Class UltharTheme

  • Direct Known Subclasses:
    DreamlandsTheme

    public class UltharTheme
    extends Theme
    A Theme implementation that wraps the FlatLaf.
    Since:
    3.2
    Author:
    Chris Jennings
    • Constructor Detail

      • UltharTheme

        public UltharTheme()
    • Method Detail

      • getLookAndFeelClassName

        public java.lang.String getLookAndFeelClassName()
        Description copied from class: Theme
        Returns the look and feel class name. Subclasses may override this to use a custom look and feel.
        Overrides:
        getLookAndFeelClassName in class Theme
        Returns:
        the name of a LookAndFeel subclass
      • createLookAndFeelInstance

        public javax.swing.LookAndFeel createLookAndFeelInstance()
        Description copied from class: Theme
        Returns an instance of the look and feel for the theme. If Theme.getLookAndFeelClassName() returns null, then the theme installer will call this instead. The base class throws an UnsupportedOperationException. If the class name is null and this returns null, the app will refuse to start.
        Overrides:
        createLookAndFeelInstance in class Theme
        Returns:
        a non-null look-and-feel instance for the theme
      • modifyManagerDefaults

        public void modifyManagerDefaults​(javax.swing.UIDefaults defaults)
        Description copied from class: Theme
        This method is called prior to instantiating the look and feel and allows you to modify the UI manager's default properties.
        Specified by:
        modifyManagerDefaults in class Theme
        Parameters:
        defaults - the UIManager defaults
      • modifyLookAndFeelDefaults

        public void modifyLookAndFeelDefaults​(javax.swing.UIDefaults defaults)
        Description copied from class: Theme
        This method is called after the look and feel has been instantiated but before it has been installed and allows you to modify the look and feel's default properties.
        Specified by:
        modifyLookAndFeelDefaults in class Theme
        Parameters:
        defaults - the Look and Feel UI defaults
      • getThemeGroup

        public java.lang.String getThemeGroup()
        Description copied from class: Theme
        Returns a string that names a group to which the theme belongs. Themes that have the same group will be placed together in the list of selectable themes. The base class returns the theme name. Themes that complement each other, such as light and dark variants of the same theme, should return the same group name. It is recommended to use the name of the light theme as the group name for both.
        Overrides:
        getThemeGroup in class Theme
        Returns:
        a non-null string naming the theme's group
      • isDark

        public boolean isDark()
        Description copied from class: Theme
        Returns whether the theme is, on the whole, light-on-dark, similar to OS "dark modes". The base class returns false.
        Overrides:
        isDark in class Theme
        Returns:
        true if the theme is a "dark mode" style theme