Class PluginTestTheme


  • public class PluginTestTheme
    extends Theme
    The plug-in test theme is a special built-in theme. It is selected automatically when running in plug-in test mode, unless the plug-in being tested is itself a theme. Visually, it is a brown-coloured variant of the HydraTheme.
    Since:
    2.1
    Author:
    Chris Jennings
    • Constructor Detail

      • PluginTestTheme

        public PluginTestTheme()
    • Method Detail

      • getThemeName

        public java.lang.String getThemeName()
        Description copied from class: Theme
        Returns the name of this theme, as it should be presented to the user. Theme names are typically short, one or two words. A localized theme name should use the UI locale (Language.getInterfaceLocale()).

        The base class generates a name from the class name by removing "Theme" from the end (if present) and inserting a space whenever an upper case letter follows a lower case letter. So, for example, "TchoTchoTheme" would become "Tcho Tcho".

        Overrides:
        getThemeName in class Theme
        Returns:
        the human-friendly name of this 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
      • applyThemeToImage

        public java.awt.image.BufferedImage applyThemeToImage​(java.awt.image.BufferedImage bi)
        Description copied from class: Theme
        Gives the theme the opportunity to modify a image to reflect the theme. The base class returns source unmodified.

        Important: Themes that wish to override this to modify images must be sure to return a copy of the original image and leave the source unmodified to avoid corrupting the image cache.

        Overrides:
        applyThemeToImage in class Theme
        Parameters:
        bi - the image to apply themeing to
        Returns:
        a themed copy of the image, or the original image if it is not modified by the theme
        See Also:
        #applyThemeToImage(java.lang.String)
      • applyThemeToColor

        public Settings.Colour applyThemeToColor​(java.awt.Color c)
        Description copied from class: Theme
        Gives the theme the opportunity to modify a colour to reflect the theme. The base class returns the input without changes, other than ensuring it is a Colour.
        Overrides:
        applyThemeToColor in class Theme
        Parameters:
        c - the colour to theme
        Returns:
        a modified colour, or the original colour