Class RenamedTheme
- java.lang.Object
-
- com.github.weisj.darklaf.theme.Theme
-
- com.github.weisj.darklaf.theme.ThemeDelegate
-
- com.github.weisj.darklaf.theme.laf.RenamedTheme
-
- All Implemented Interfaces:
Serializable,Comparable<Theme>,Comparator<Theme>
public class RenamedTheme extends ThemeDelegate
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RenamedTheme(Theme delegate, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Themederive(FontSizeRule fontSizeRule, AccentColorRule accentColorRule)Create a derived theme with the givenFontSizeRuleandAccentColorRule.StringgetDisplayName()Get the display name of this theme.-
Methods inherited from class com.github.weisj.darklaf.theme.ThemeDelegate
appearsEqualTo, copy, customizeGlobals, customizeIconTheme, customizePlatformProperties, customizeUIProperties, getAccentColorRule, getColorToneRule, getContrastRule, getDelegate, getFontSizeRule, getLoaderClass, getName, getPrefix, getPresetIconRule, getPropertyFilePath, getResourcePath, getThemeClass, loadDefaults, loadIconTheme, supportsCustomAccentColor, supportsCustomSelectionColor, useCustomDecorations
-
Methods inherited from class com.github.weisj.darklaf.theme.Theme
baseThemeOf, compare, compareTo, equals, hashCode, isDark, isHighContrast, load, loadAccentProperties, loadCustomProperties, loadPropertyFile, loadPropertyFile, loadStyleSheet, loadWithClass, toString, withDisplayName
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
derive
public Theme derive(FontSizeRule fontSizeRule, AccentColorRule accentColorRule)
Description copied from class:ThemeCreate a derived theme with the givenFontSizeRuleandAccentColorRule.- Overrides:
derivein classThemeDelegate- Parameters:
fontSizeRule- the font size rule.accentColorRule- the accent color rule.- Returns:
- the derived theme.
-
getDisplayName
public String getDisplayName()
Description copied from class:ThemeGet the display name of this theme.- Overrides:
getDisplayNamein classThemeDelegate- Returns:
- the display name of the theme.
-
-