| java.lang.Object org.jvnet.substance.theme.SubstanceTheme org.jvnet.substance.theme.SubstanceComplexTheme
SubstanceComplexTheme | public class SubstanceComplexTheme extends SubstanceTheme (Code) | | Complex theme. A complex theme is defined by four separate themes:
- Active theme - used for the active (selected, pressed, rolled over)
controls.
- Default theme - used for inactive enabled controls.
- Disabled theme - used for disabled controls.
- Active title pane theme - used for title panes of active windows.
This class is part of officially supported API.
author: Kirill Grouchnikov |
Constructor Summary | |
public | SubstanceComplexTheme(String displayName, ThemeKind themeKind, SubstanceTheme activeTheme, SubstanceTheme defaultTheme, SubstanceTheme disabledTheme) Creates a new complex theme. | public | SubstanceComplexTheme(String displayName, ThemeKind themeKind, SubstanceTheme activeTheme, SubstanceTheme defaultTheme, SubstanceTheme disabledTheme, SubstanceTheme activeTitlePaneTheme) Creates a new complex theme. | public | SubstanceComplexTheme(String displayName, ThemeKind themeKind, SubstanceTheme activeTheme, SubstanceTheme defaultTheme, SubstanceTheme disabledTheme, SubstanceTheme activeTitlePaneTheme, SubstanceTheme watermarkTheme) Creates a new complex theme. |
Method Summary | |
protected void | copyTo(SubstanceComplexTheme dst, ThemeTransform shiftTransform) Copies theme-agnostic settings of this theme to the
specified theme. | public SubstanceTheme | deuteranopia() | public SubstanceTheme | getActiveTheme() | public SubstanceTheme | getActiveTitlePaneTheme() | public SubstanceTheme | getDecorationTheme(DecorationAreaType decorationType) | public SubstanceTheme | getDefaultTheme() | public SubstanceTheme | getDefaultTitlePaneTheme() | public SubstanceTheme | getDisabledTheme() | public SubstanceTheme | getFirstTheme() | public SubstanceTheme | getHighlightTheme(Component comp, ComponentState componentState) | public float | getHighlightThemeAlpha(Component comp, ComponentState componentState) | public Color | getLightBackgroundColor() | public SubstanceGradientPainter | getNonActivePainter() | public SubstanceTheme | getSecondTheme() | public double | getSelectedTabFadeEnd() | public double | getSelectedTabFadeStart() | public SubstanceTheme | getTheme(Component comp, ComponentState componentState) | public SubstanceTheme | getTheme(Component comp, ComponentState componentState, boolean toIgnoreHighlights) | public float | getThemeAlpha(Component comp, ComponentState componentState) | public SubstanceTheme | getWatermarkTheme() | public SubstanceTheme | hueShift(double hueShiftFactor) | public SubstanceTheme | invert() | public boolean | isPaintingToolbarDropShadows() | public SubstanceTheme | negate() | public SubstanceTheme | protanopia() | public void | registerComponentHighlightStateTheme(SubstanceTheme stateHighlightTheme, ComponentState... states) Registers a highlight theme for the specific component state if the
component state is not null , or a global highlight theme
otherwise.
Parameters: stateHighlightTheme - Highlight theme for the specified component state. Parameters: states - Component states. | public void | registerComponentHighlightStateTheme(SubstanceTheme stateHighlightTheme, float alpha, ComponentState... states) Registers a highlight theme for the specific component state if the
component state is not null , or a global highlight theme
otherwise.
Parameters: stateHighlightTheme - Highlight theme for the specified component state. Parameters: alpha - Alpha channel for the highlight theme. Parameters: states - Component states. | public void | registerComponentStateTheme(SubstanceTheme stateTheme, float alpha, boolean useForHighlights, ComponentState... states) Registers a theme for the specific component state. | public void | registerComponentStateTheme(SubstanceTheme stateTheme, boolean useForHighlights, ComponentState... states) Registers a theme for the specific component state. | public void | registerDecorationAreaTheme(SubstanceTheme decorationTheme, boolean toUseOnActiveControls, DecorationAreaType... areaTypes) Registers the specified theme to be used on controls in decoration areas.
Parameters: decorationTheme - The theme to use on controls in decoration areas. Parameters: toUseOnActiveControls - If false , the parameter theme will only beused on controls in default state. | public SubstanceTheme | saturate(double saturateFactor, boolean toSaturateEverything) | public void | setActiveTheme(SubstanceTheme activeTheme) Sets the theme for the active visual state. | public void | setActiveTitlePaneTheme(SubstanceTheme activeTitlePaneTheme) Sets the theme for the title panes of active windows. | public void | setDefaultTheme(SubstanceTheme defaultTheme) Sets the theme for the default visual state. | public void | setDefaultTitlePaneTheme(SubstanceTheme defaultTitlePaneTheme) Sets the theme for title panes of inactive windows. | public void | setDisabledTheme(SubstanceTheme disabledTheme) Sets the theme for the disabled visual state. | public void | setNonActivePainter(SubstanceGradientPainter nonActivePainter) Sets the painter for painting the non-active controls. | public void | setPaintingToolbarDropShadows() Marks the toolbars to have drop shadows on the top few pixels. | public void | setSelectedTabFadeEnd(double selectedTabFadeEnd) Sets the end of fade effect on the selected tabs in
JTabbedPane s.
The value should be in 0.0-1.0 range.
Parameters: selectedTabFadeEnd - The end of fade effect on the selected tabs inJTabbedPanes. | public void | setSelectedTabFadeStart(double selectedTabFadeStart) Sets the start of fade effect on the selected tabs in
JTabbedPane s.
The value should be in 0.0-1.0 range.
Parameters: selectedTabFadeStart - The start of fade effect on the selected tabs inJTabbedPanes. | public void | setUseSameBackgroundColor(boolean useSameBackgroundColor) Sets usage of background color for light background color. | public void | setWatermarkTheme(SubstanceTheme watermarkTheme) Sets the theme for the watermark. | public SubstanceTheme | shade(double shadeFactor) | public SubstanceTheme | shift(Color backgroundShiftColor, double backgroundShiftFactor, Color foregroundShiftColor, double foregroundShiftFactor) | public SubstanceTheme | tint(double tintFactor) | public boolean | toUseDecorationPainter(DecorationAreaType decorationType) | public boolean | toUseDecorationThemeOnActiveControls(DecorationAreaType decorationType) | public SubstanceTheme | tone(double toneFactor) | public SubstanceTheme | tritanopia() |
activeTitlePaneTheme | protected SubstanceTheme activeTitlePaneTheme(Code) | | Theme for title panes of active windows.
|
defaultTitlePaneTheme | protected SubstanceTheme defaultTitlePaneTheme(Code) | | Theme for title panes of inactive windows.
|
disabledTheme | protected SubstanceTheme disabledTheme(Code) | | Theme for controls in disabled visual state.
|
isPaintingToolbarDropShadows | protected boolean isPaintingToolbarDropShadows(Code) | | |
stateHighlightThemeAlphaMap | protected Map<ComponentState, Float> stateHighlightThemeAlphaMap(Code) | | Maps from component state to the alpha channel applied on highlight
theme. This map doesn't have to contain entries for all
ComponentState instances.
|
stateThemeAlphaMap | protected Map<ComponentState, Float> stateThemeAlphaMap(Code) | | Maps from component state to the alpha channel applied on theme. This map
doesn't have to contain entries for all
ComponentState instances.
|
useSameBackgroundColor | protected boolean useSameBackgroundColor(Code) | | If true , the light background color and the background
color are the same.
since: version 4.0 |
SubstanceComplexTheme | public SubstanceComplexTheme(String displayName, ThemeKind themeKind, SubstanceTheme activeTheme, SubstanceTheme defaultTheme, SubstanceTheme disabledTheme)(Code) | | Creates a new complex theme.
Parameters: displayName - Theme display name. Parameters: themeKind - Theme kind. Parameters: activeTheme - Active theme. Parameters: defaultTheme - Default theme. Parameters: disabledTheme - Disabled theme. |
SubstanceComplexTheme | public SubstanceComplexTheme(String displayName, ThemeKind themeKind, SubstanceTheme activeTheme, SubstanceTheme defaultTheme, SubstanceTheme disabledTheme, SubstanceTheme activeTitlePaneTheme)(Code) | | Creates a new complex theme.
Parameters: displayName - Theme display name. Parameters: themeKind - Theme kind. Parameters: activeTheme - Active theme. Parameters: defaultTheme - Default theme. Parameters: disabledTheme - Disabled theme. Parameters: activeTitlePaneTheme - Active title pane theme. |
SubstanceComplexTheme | public SubstanceComplexTheme(String displayName, ThemeKind themeKind, SubstanceTheme activeTheme, SubstanceTheme defaultTheme, SubstanceTheme disabledTheme, SubstanceTheme activeTitlePaneTheme, SubstanceTheme watermarkTheme)(Code) | | Creates a new complex theme.
Parameters: displayName - Theme display name. Parameters: themeKind - Theme kind. Parameters: activeTheme - Active theme. Parameters: defaultTheme - Default theme. Parameters: disabledTheme - Disabled theme. Parameters: activeTitlePaneTheme - Active title pane theme. Parameters: watermarkTheme - Watermark theme. |
copyTo | protected void copyTo(SubstanceComplexTheme dst, ThemeTransform shiftTransform)(Code) | | Copies theme-agnostic settings of this theme to the
specified theme.
Parameters: dst - Theme to copy to. Parameters: shiftTransform - Transformation to apply to the copied settings. |
getLightBackgroundColor | public Color getLightBackgroundColor()(Code) | | |
getSelectedTabFadeEnd | public double getSelectedTabFadeEnd()(Code) | | |
getSelectedTabFadeStart | public double getSelectedTabFadeStart()(Code) | | |
isPaintingToolbarDropShadows | public boolean isPaintingToolbarDropShadows()(Code) | | |
registerComponentHighlightStateTheme | public void registerComponentHighlightStateTheme(SubstanceTheme stateHighlightTheme, ComponentState... states)(Code) | | Registers a highlight theme for the specific component state if the
component state is not null , or a global highlight theme
otherwise.
Parameters: stateHighlightTheme - Highlight theme for the specified component state. Parameters: states - Component states. If null , the specified themewill be applied for all states left unspecified. |
registerComponentHighlightStateTheme | public void registerComponentHighlightStateTheme(SubstanceTheme stateHighlightTheme, float alpha, ComponentState... states)(Code) | | Registers a highlight theme for the specific component state if the
component state is not null , or a global highlight theme
otherwise.
Parameters: stateHighlightTheme - Highlight theme for the specified component state. Parameters: alpha - Alpha channel for the highlight theme. Parameters: states - Component states. If null , the specified themewill be applied for all states left unspecified. |
registerComponentStateTheme | public void registerComponentStateTheme(SubstanceTheme stateTheme, float alpha, boolean useForHighlights, ComponentState... states)(Code) | | Registers a theme for the specific component state.
Parameters: stateTheme - Theme for the specified component state. Parameters: alpha - Alpha channel for the theme. Parameters: useForHighlights - if true , the specified theme will be used ashighlight theme as well (for the same component state). Parameters: states - Component states. |
registerComponentStateTheme | public void registerComponentStateTheme(SubstanceTheme stateTheme, boolean useForHighlights, ComponentState... states)(Code) | | Registers a theme for the specific component state.
Parameters: stateTheme - Theme for the specified component state. Parameters: useForHighlights - if true , the specified theme will be used ashighlight theme as well (for the same component state). Parameters: states - Component states. |
registerDecorationAreaTheme | public void registerDecorationAreaTheme(SubstanceTheme decorationTheme, boolean toUseOnActiveControls, DecorationAreaType... areaTypes)(Code) | | Registers the specified theme to be used on controls in decoration areas.
Parameters: decorationTheme - The theme to use on controls in decoration areas. Parameters: toUseOnActiveControls - If false , the parameter theme will only beused on controls in default state. In this case, controls indisabled or active states will use the global theme. Parameters: areaTypes - Enumerates the area types that are affected by the parametertheme. since: version 4.3 |
setActiveTheme | public void setActiveTheme(SubstanceTheme activeTheme)(Code) | | Sets the theme for the active visual state.
Parameters: activeTheme - The theme for the active visual state. since: version 4.0 |
setActiveTitlePaneTheme | public void setActiveTitlePaneTheme(SubstanceTheme activeTitlePaneTheme)(Code) | | Sets the theme for the title panes of active windows.
Parameters: activeTitlePaneTheme - The theme for the title panes of active windows. since: version 4.0 |
setDefaultTheme | public void setDefaultTheme(SubstanceTheme defaultTheme)(Code) | | Sets the theme for the default visual state.
Parameters: defaultTheme - The theme for the default visual state. since: version 4.0 |
setDefaultTitlePaneTheme | public void setDefaultTitlePaneTheme(SubstanceTheme defaultTitlePaneTheme)(Code) | | Sets the theme for title panes of inactive windows.
Parameters: defaultTitlePaneTheme - Theme for title panes of inactive windows. since: version 3.3 |
setDisabledTheme | public void setDisabledTheme(SubstanceTheme disabledTheme)(Code) | | Sets the theme for the disabled visual state.
Parameters: disabledTheme - The theme for the disabled visual state. since: version 4.0 |
setNonActivePainter | public void setNonActivePainter(SubstanceGradientPainter nonActivePainter)(Code) | | Sets the painter for painting the non-active controls.
Parameters: nonActivePainter - Painter for painting the non-active controls. |
setPaintingToolbarDropShadows | public void setPaintingToolbarDropShadows()(Code) | | Marks the toolbars to have drop shadows on the top few pixels.
since: version 4.3 |
setSelectedTabFadeEnd | public void setSelectedTabFadeEnd(double selectedTabFadeEnd)(Code) | | Sets the end of fade effect on the selected tabs in
JTabbedPane s.
The value should be in 0.0-1.0 range.
Parameters: selectedTabFadeEnd - The end of fade effect on the selected tabs inJTabbedPanes. Should be in 0.0-1.0 range. |
setSelectedTabFadeStart | public void setSelectedTabFadeStart(double selectedTabFadeStart)(Code) | | Sets the start of fade effect on the selected tabs in
JTabbedPane s.
The value should be in 0.0-1.0 range.
Parameters: selectedTabFadeStart - The start of fade effect on the selected tabs inJTabbedPanes. Should be in 0.0-1.0 range. |
setUseSameBackgroundColor | public void setUseSameBackgroundColor(boolean useSameBackgroundColor)(Code) | | Sets usage of background color for light background color.
Parameters: useSameBackgroundColor - if true , the light background color and thebackground color are the same. |
setWatermarkTheme | public void setWatermarkTheme(SubstanceTheme watermarkTheme)(Code) | | Sets the theme for the watermark.
Parameters: watermarkTheme - The theme for the watermark. since: version 4.0 |
shift | public SubstanceTheme shift(Color backgroundShiftColor, double backgroundShiftFactor, Color foregroundShiftColor, double foregroundShiftFactor)(Code) | | |
toUseDecorationThemeOnActiveControls | public boolean toUseDecorationThemeOnActiveControls(DecorationAreaType decorationType)(Code) | | |
Methods inherited from org.jvnet.substance.theme.SubstanceTheme | public void addCustomEntriesToTable(UIDefaults table)(Code)(Java Doc) public static SubstanceTheme addUserDefined(ColorScheme scheme, ThemeKind themeKind, String displayName)(Code)(Java Doc) public static SubstanceTheme createInstance(ThemeInfo themeInfo)(Code)(Java Doc) public SubstanceTheme deuteranopia()(Code)(Java Doc) public SubstanceTheme getActiveTheme()(Code)(Java Doc) public SubstanceTheme getActiveTitlePaneTheme()(Code)(Java Doc) public Color getBackgroundColor()(Code)(Java Doc) public SubstanceTheme getBorderTheme()(Code)(Java Doc) public ColorScheme getColorScheme()(Code)(Java Doc) public SubstanceTheme getDecorationTheme(DecorationAreaType decorationType)(Code)(Java Doc) public static ColorScheme getDefaultColorScheme(ThemeKind themeKind)(Code)(Java Doc) public ColorScheme getDefaultColorScheme()(Code)(Java Doc) public SubstanceTheme getDefaultTheme()(Code)(Java Doc) public SubstanceTheme getDefaultTitlePaneTheme()(Code)(Java Doc) public Color getDisabledBackgroundColor()(Code)(Java Doc) public static ColorScheme getDisabledColorScheme(ThemeKind themeKind)(Code)(Java Doc) public ColorScheme getDisabledColorScheme()(Code)(Java Doc) public Color getDisabledForegroundColor()(Code)(Java Doc) public SubstanceTheme getDisabledTheme()(Code)(Java Doc) public String getDisplayName()(Code)(Java Doc) public SubstanceTheme getFirstTheme()(Code)(Java Doc) public ColorUIResource getForegroundColor()(Code)(Java Doc) public SubstanceTheme getHighlightTheme(Component comp, ComponentState componentState)(Code)(Java Doc) public float getHighlightThemeAlpha(Component comp, ComponentState componentState)(Code)(Java Doc) public ThemeKind getKind()(Code)(Java Doc) public Color getLightBackgroundColor()(Code)(Java Doc) public Color getLineColor()(Code)(Java Doc) public Color getLineColorDefault()(Code)(Java Doc) public SubstanceGradientPainter getNonActivePainter()(Code)(Java Doc) public SubstanceTheme getSecondTheme()(Code)(Java Doc) public double getSelectedTabFadeEnd()(Code)(Java Doc) public double getSelectedTabFadeStart()(Code)(Java Doc) public Color getSelectionBackgroundColor()(Code)(Java Doc) public Color getSelectionCellForegroundColor()(Code)(Java Doc) public Color getSelectionForegroundColor()(Code)(Java Doc) public static SubstanceTheme getTheme(String displayName)(Code)(Java Doc) public SubstanceTheme getTheme(Component comp, ComponentState componentState)(Code)(Java Doc) public SubstanceTheme getTheme(Component comp, ComponentState componentState, boolean toIgnoreHighlights)(Code)(Java Doc) public float getThemeAlpha(Component comp, ComponentState componentState)(Code)(Java Doc) public String getThemeName()(Code)(Java Doc) public Color getWatermarkStampColor()(Code)(Java Doc) public SubstanceTheme getWatermarkTheme()(Code)(Java Doc) public SubstanceTheme hueShift(double hueShiftFactor)(Code)(Java Doc) public SubstanceTheme invert()(Code)(Java Doc) public boolean isDark()(Code)(Java Doc) public boolean isPaintingToolbarDropShadows()(Code)(Java Doc) public SubstanceTheme negate()(Code)(Java Doc) public SubstanceTheme protanopia()(Code)(Java Doc) public SubstanceTheme saturate(double saturateFactor)(Code)(Java Doc) public SubstanceTheme saturate(double saturateFactor, boolean toSaturateEverything)(Code)(Java Doc) public SubstanceTheme shade(double shadeFactor)(Code)(Java Doc) public SubstanceTheme shift(Color backgroundShiftColor, double backgroundShiftFactor, Color foregroundShiftColor, double foregroundShiftFactor)(Code)(Java Doc) public SubstanceTheme tint(double tintFactor)(Code)(Java Doc) public String toString()(Code)(Java Doc) public boolean toUseDecorationPainter(DecorationAreaType decorationType)(Code)(Java Doc) public boolean toUseDecorationThemeOnActiveControls(DecorationAreaType decorationType)(Code)(Java Doc) public SubstanceTheme tone(double toneFactor)(Code)(Java Doc) public SubstanceTheme tritanopia()(Code)(Java Doc)
|
|
|