org.jvnet.substance.theme
Class SubstanceWrapperTheme

java.lang.Object
  extended by org.jvnet.substance.theme.SubstanceTheme
      extended by org.jvnet.substance.theme.SubstanceWrapperTheme
All Implemented Interfaces:
SubstanceTrait
Direct Known Subclasses:
SubstanceColorBlindTheme, SubstanceHueShiftTheme, SubstanceInvertedTheme, SubstanceNegatedTheme, SubstanceSaturatedTheme, SubstanceShadeTheme, SubstanceTintTheme, SubstanceToneTheme

public abstract class SubstanceWrapperTheme
extends SubstanceTheme

Base class for themes that are based on some other theme. This class is part of officially supported API.

Author:
Kirill Grouchnikov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.substance.theme.SubstanceTheme
SubstanceTheme.ThemeKind
 
Field Summary
protected  SubstanceTheme borderTheme
          Theme for borders.
protected  SubstanceTheme defaultTheme
          Theme for controls in default visual state.
protected  SubstanceTheme disabledTheme
          Theme for controls in disabled visual state.
protected  SubstanceTheme originalTheme
          The original (wrapped) theme.
 
Fields inherited from class org.jvnet.substance.theme.SubstanceTheme
AQUA, GREEN, ORANGE, YELLOW
 
Constructor Summary
SubstanceWrapperTheme(SubstanceTheme originalTheme, ColorScheme colorScheme, java.lang.String displayName, SubstanceTheme.ThemeKind themeKind)
          Creates a new wrapper theme.
 
Method Summary
 SubstanceTheme getOriginalTheme()
          Returns the original (wrapped) theme.
 
Methods inherited from class org.jvnet.substance.theme.SubstanceTheme
addCustomEntriesToTable, addUserDefined, createInstance, deuteranopia, getActiveTheme, getActiveTitlePaneTheme, getBackgroundColor, getBorderTheme, getColorScheme, getDefaultColorScheme, getDefaultColorScheme, getDefaultTheme, getDefaultTitlePaneTheme, getDisabledBackgroundColor, getDisabledColorScheme, getDisabledColorScheme, getDisabledForegroundColor, getDisabledTheme, getDisplayName, getFirstTheme, getForegroundColor, getHighlightTheme, getHighlightThemeAlpha, getKind, getLightBackgroundColor, getLineColor, getLineColorDefault, getNonActivePainter, getSecondTheme, getSelectedTabFadeEnd, getSelectedTabFadeStart, getSelectionBackgroundColor, getSelectionCellForegroundColor, getSelectionForegroundColor, getTheme, getTheme, getThemeAlpha, getThemeName, getWatermarkStampColor, getWatermarkTheme, hueShift, invert, isDark, negate, protanopia, saturate, saturate, shade, tint, tone, toString, tritanopia
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

originalTheme

protected SubstanceTheme originalTheme
The original (wrapped) theme.


defaultTheme

protected SubstanceTheme defaultTheme
Theme for controls in default visual state.


disabledTheme

protected SubstanceTheme disabledTheme
Theme for controls in disabled visual state.


borderTheme

protected SubstanceTheme borderTheme
Theme for borders.

Constructor Detail

SubstanceWrapperTheme

public SubstanceWrapperTheme(SubstanceTheme originalTheme,
                             ColorScheme colorScheme,
                             java.lang.String displayName,
                             SubstanceTheme.ThemeKind themeKind)
Creates a new wrapper theme.

Parameters:
originalTheme - The original theme.
colorScheme - The associated color scheme.
displayName - Display name for the wrapper theme.
themeKind - Theme kind for the wrapper theme.
Method Detail

getOriginalTheme

public SubstanceTheme getOriginalTheme()
Returns the original (wrapped) theme.

Returns:
The original (wrapped) theme.