org.jvnet.substance.theme
Class SubstanceShiftTheme

java.lang.Object
  extended by org.jvnet.substance.theme.SubstanceTheme
      extended by org.jvnet.substance.theme.SubstanceWrapperTheme
          extended by org.jvnet.substance.theme.SubstanceShiftTheme
All Implemented Interfaces:
SubstanceTrait

public class SubstanceShiftTheme
extends SubstanceWrapperTheme

Shift theme. A shift theme is based on some original theme that is shifted towards some color.

Author:
Kirill Grouchnikov
See Also:
ShiftColorScheme

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.substance.theme.SubstanceTheme
SubstanceTheme.ThemeKind
 
Field Summary
protected static java.util.Map<java.lang.String,SubstanceTheme> shiftedCache
          Cache of shifted themes.
 
Fields inherited from class org.jvnet.substance.theme.SubstanceWrapperTheme
borderTheme, defaultTheme, disabledTheme, originalTheme
 
Fields inherited from class org.jvnet.substance.theme.SubstanceTheme
AQUA, GREEN, ORANGE, YELLOW
 
Method Summary
 SubstanceTheme getDefaultTheme()
          Returns the default theme that corresponds to this theme.
 SubstanceTheme getDisabledTheme()
          Returns the disabled theme that corresponds to this theme.
static SubstanceTheme getShiftedTheme(SubstanceTheme orig, java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor)
          Returns a shifted theme.
 
Methods inherited from class org.jvnet.substance.theme.SubstanceWrapperTheme
getOriginalTheme
 
Methods inherited from class org.jvnet.substance.theme.SubstanceTheme
addCustomEntriesToTable, addUserDefined, createInstance, deuteranopia, getActiveTheme, getActiveTitlePaneTheme, getBackgroundColor, getBorderTheme, getColorScheme, getDecorationTheme, getDefaultColorScheme, getDefaultColorScheme, getDefaultTitlePaneTheme, getDisabledBackgroundColor, getDisabledColorScheme, getDisabledColorScheme, getDisabledForegroundColor, getDisplayName, getFirstTheme, getForegroundColor, getHighlightTheme, getHighlightThemeAlpha, getKind, getLightBackgroundColor, getLineColor, getLineColorDefault, getNonActivePainter, getSecondTheme, getSelectedTabFadeEnd, getSelectedTabFadeStart, getSelectionBackgroundColor, getSelectionCellForegroundColor, getSelectionForegroundColor, getTheme, getTheme, getTheme, getThemeAlpha, getThemeName, getWatermarkStampColor, getWatermarkTheme, hueShift, invert, isDark, isPaintingToolbarDropShadows, negate, protanopia, saturate, saturate, shade, shift, tint, tone, toString, toUseDecorationPainter, toUseDecorationThemeOnActiveControls, tritanopia
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

shiftedCache

protected static java.util.Map<java.lang.String,SubstanceTheme> shiftedCache
Cache of shifted themes.

Method Detail

getDefaultTheme

public SubstanceTheme getDefaultTheme()
Description copied from class: SubstanceTheme
Returns the default theme that corresponds to this theme. This method is for internal use only.

Overrides:
getDefaultTheme in class SubstanceTheme
Returns:
The default theme that corresponds to this theme.

getDisabledTheme

public SubstanceTheme getDisabledTheme()
Description copied from class: SubstanceTheme
Returns the disabled theme that corresponds to this theme. This method is for internal use only.

Overrides:
getDisabledTheme in class SubstanceTheme
Returns:
The disabled theme that corresponds to this theme.

getShiftedTheme

public static SubstanceTheme getShiftedTheme(SubstanceTheme orig,
                                             java.awt.Color backgroundShiftColor,
                                             double backgroundShiftFactor,
                                             java.awt.Color foregroundShiftColor,
                                             double foregroundShiftFactor)
Returns a shifted theme. This method is for internal use only.

Parameters:
orig - The original theme.
backgroundShiftColor - Shift color for the background theme colors. May be null - in this case, the background theme colors will not be shifted.
backgroundShiftFactor - Shift factor for the background theme colors. If the shift color for the background theme colors is null, this value is ignored.
foregroundShiftColor - Shift color for the foreground theme colors. May be null - in this case, the foreground theme colors will not be shifted.
foregroundShiftFactor - Shift factor for the foreground theme colors. If the shift color for the foreground theme colors is null, this value is ignored.
Returns:
Shifted theme.