Method Summary |
|
public void | addCustomEntriesToTable(UIDefaults table) Adds theme-specific entries to the UI defaults table. |
public static SubstanceTheme | addUserDefined(ColorScheme scheme, ThemeKind themeKind, String displayName) Creates a new theme based on the specified parameters. |
public static SubstanceTheme | createInstance(ThemeInfo themeInfo) Creates a theme instance based on the specified theme info object. |
public SubstanceTheme | deuteranopia() Creates a new version of this theme that simulates the
deuteranopia color blindness. |
public SubstanceTheme | getActiveTheme() Returns the active theme that corresponds to this theme. |
public SubstanceTheme | getActiveTitlePaneTheme() Returns the theme for title panes of active frames. |
public Color | getBackgroundColor() Returns the background color for this theme. |
public SubstanceTheme | getBorderTheme() Returns the theme for border painting. |
public ColorScheme | getColorScheme() Returns the color scheme of this theme. |
public SubstanceTheme | getDecorationTheme(DecorationAreaType decorationType) |
public static ColorScheme | getDefaultColorScheme(ThemeKind themeKind) Returns the default scheme that corresponds to the specified theme kind.
This method is for internal use only.
Parameters: themeKind - Theme kind. |
public ColorScheme | getDefaultColorScheme() Returns the default color scheme that corresponds to this
theme. |
public SubstanceTheme | getDefaultTheme() Returns the default theme that corresponds to this theme. |
public SubstanceTheme | getDefaultTitlePaneTheme() Returns the theme for title panes of inactive frames. |
public Color | getDisabledBackgroundColor() Returns the disabled background color for this theme. |
public static ColorScheme | getDisabledColorScheme(ThemeKind themeKind) Returns the disabled scheme that corresponds to the specified theme kind.
This method is for internal use only.
Parameters: themeKind - Theme kind. |
public ColorScheme | getDisabledColorScheme() Returns the disabled color scheme that corresponds to this
theme. |
public Color | getDisabledForegroundColor() Returns the disabled foreground color for this theme. |
public SubstanceTheme | getDisabledTheme() Returns the disabled theme that corresponds to this theme. |
public String | getDisplayName() |
public SubstanceTheme | getFirstTheme() Returns the first theme. |
public ColorUIResource | getForegroundColor() Returns the foreground color for this theme. |
public SubstanceTheme | getHighlightTheme(Component comp, ComponentState componentState) Returns the highlight theme that corresponds to the specified component
state.
Parameters: comp - Component. Parameters: componentState - Component state. |
public float | getHighlightThemeAlpha(Component comp, ComponentState componentState) Returns the alpha channel that is applied on highlight theme when a
component is in the specified state.
Parameters: comp - Component. Parameters: componentState - Component state. |
public ThemeKind | getKind() Returns the kind of this theme. |
public Color | getLightBackgroundColor() Returns the light background color for this theme. |
public Color | getLineColor() Returns the line color for this theme. |
public Color | getLineColorDefault() Returns the line color for this theme. |
public SubstanceGradientPainter | getNonActivePainter() Returns the painter for painting the non-active controls. |
public SubstanceTheme | getSecondTheme() Returns the second theme. |
public double | getSelectedTabFadeEnd() Returns the end of fade effect on the selected tabs in
JTabbedPane s. |
public double | getSelectedTabFadeStart() Returns the start of fade effect on the selected tabs in
JTabbedPane s. |
public Color | getSelectionBackgroundColor() Returns the selection background color for this theme. |
public Color | getSelectionCellForegroundColor() Returns the foreground color for selected cells for this theme. |
public Color | getSelectionForegroundColor() Returns the selection foreground color for this theme. |
public static SubstanceTheme | getTheme(String displayName) Returns the theme that matches the specified display name. |
public SubstanceTheme | getTheme(Component comp, ComponentState componentState) Returns the theme that corresponds to the specified component state.
Parameters: componentState - Component state. |
public SubstanceTheme | getTheme(Component comp, ComponentState componentState, boolean toIgnoreHighlights) |
public float | getThemeAlpha(Component comp, ComponentState componentState) Returns the alpha channel that is applied on theme when a component is in
the specified state.
Parameters: comp - Component. Parameters: componentState - Component state. |
public String | getThemeName() Returns the name of this theme. |
public Color | getWatermarkStampColor() Returns the translucent watermark stamp color of this
theme. |
public SubstanceTheme | getWatermarkTheme() Returns the theme for watermark painting. |
public SubstanceTheme | hueShift(double hueShiftFactor) Creates a hue-shifted (in HSB space) version of this
theme. |
public SubstanceTheme | invert() Creates an inverted version of this theme. |
public boolean | isDark() Returns indication whether this theme is dark. |
public boolean | isPaintingToolbarDropShadows() |
public SubstanceTheme | negate() Creates a negated version of this theme. |
public SubstanceTheme | protanopia() Creates a new version of this theme that simulates the
protanopia color blindness. |
public SubstanceTheme | saturate(double saturateFactor) Creates a saturated or desaturated version of this theme.
The value and brightness stay the same. |
public SubstanceTheme | saturate(double saturateFactor, boolean toSaturateEverything) Creates a saturated or desaturated version of this theme.
The value and brightness stay the same. |
public SubstanceTheme | shade(double shadeFactor) Creates a shaded (shifted towards black) version of this
theme. |
public SubstanceTheme | shift(Color backgroundShiftColor, double backgroundShiftFactor, Color foregroundShiftColor, double foregroundShiftFactor) Creates a shift version of this theme. |
public SubstanceTheme | tint(double tintFactor) Creates a tinted (shifted towards white) version of this
theme. |
public String | toString() |
public boolean | toUseDecorationPainter(DecorationAreaType decorationType) |
public boolean | toUseDecorationThemeOnActiveControls(DecorationAreaType decorationType) |
public SubstanceTheme | tone(double toneFactor) Creates a toned (shifted towards gray) version of this
theme. |
public SubstanceTheme | tritanopia() Creates a new version of this theme that simulates the
tritanopia color blindness. |