Class ThemeDelegate

    • Method Detail

      • getDelegate

        public Theme getDelegate()
      • appearsEqualTo

        public boolean appearsEqualTo​(Theme theme)
        Description copied from class: Theme
        Returns whether the appearance of the given theme is equal to the appearance if [this].
        Overrides:
        appearsEqualTo in class Theme
        Parameters:
        theme - the other theme.
        Returns:
        true if they appear equal.
      • copy

        public Theme copy()
        Description copied from class: Theme
        Creates a copy of this theme. This is not equivalent to Object.clone() in the sense that clone().getClass() == this.getClass() and copy().getClass() != this.getClass(). Nonetheless the copy theme behaves exactly the same as the original.
        Overrides:
        copy in class Theme
        Returns:
        a copy of the theme.
      • getFontSizeRule

        public FontSizeRule getFontSizeRule()
        Description copied from class: Theme
        Get the font size rule for this theme.
        Overrides:
        getFontSizeRule in class Theme
        Returns:
        the font size rule.
      • getColorToneRule

        public ColorToneRule getColorToneRule()
        Description copied from class: Theme
        Returns the style rule for this theme.
        Specified by:
        getColorToneRule in class Theme
        Returns:
        the style rule.
      • getContrastRule

        public ContrastRule getContrastRule()
        Description copied from class: Theme
        Returns contrast rule for the theme.
        Overrides:
        getContrastRule in class Theme
        Returns:
        the contrast rule.
      • getPrefix

        public String getPrefix()
        Description copied from class: Theme
        Get the prefix for resource loading.
        Specified by:
        getPrefix in class Theme
        Returns:
        the prefix for loading resources.
      • getName

        public String getName()
        Description copied from class: Theme
        Get the name of this theme.
        Specified by:
        getName in class Theme
        Returns:
        the name of the theme.
      • getDisplayName

        public String getDisplayName()
        Description copied from class: Theme
        Get the display name of this theme.
        Overrides:
        getDisplayName in class Theme
        Returns:
        the display name of the theme.
      • getLoaderClass

        protected Class<? extends Theme> getLoaderClass()
        Description copied from class: Theme
        The class used to determine the runtime location of resources. It is advised to explicitly return the class instead of using Object.getClass() to protect against extending the theme.
        Specified by:
        getLoaderClass in class Theme
        Returns:
        the loader class.
      • getPropertyFilePath

        protected String getPropertyFilePath​(String name)
        Description copied from class: Theme
        Get the path for the file [prefix]_[name].properties in the themes resource location.
        Overrides:
        getPropertyFilePath in class Theme
        Parameters:
        name - the of the file.
        Returns:
        the path relative to the location of Theme.getLoaderClass().
      • useCustomDecorations

        public boolean useCustomDecorations()
        Description copied from class: Theme
        Returns whether this theme should use custom decorations if available.
        Overrides:
        useCustomDecorations in class Theme
        Returns:
        true if decoration should be used.
      • supportsCustomSelectionColor

        public boolean supportsCustomSelectionColor()
        Description copied from class: Theme
        Returns whether this theme supports custom selection colors.
        Overrides:
        supportsCustomSelectionColor in class Theme
        Returns:
        true if supported.
      • supportsCustomAccentColor

        public boolean supportsCustomAccentColor()
        Description copied from class: Theme
        Returns whether this theme supports custom accent colors.
        Overrides:
        supportsCustomAccentColor in class Theme
        Returns:
        true if supported.