org.jvnet.substance.theme
Class SubstanceHueShiftTheme

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

public class SubstanceHueShiftTheme
extends SubstanceWrapperTheme

Hue-shifted theme. A hue-shifted theme is based on some original theme that is hue-shifted in HSB space. This class is part of officially supported API.

Since:
version 3.1
Author:
Kirill Grouchnikov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jvnet.substance.theme.SubstanceTheme
SubstanceTheme.ThemeKind
 
Field Summary
 
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.
 SubstanceTheme hueShift(double hueShiftFactor)
          Creates a hue-shifted (in HSB space) version of this 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, 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, getThemeAlpha, getThemeName, getWatermarkStampColor, getWatermarkTheme, 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
 

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.

hueShift

public SubstanceTheme hueShift(double hueShiftFactor)
Description copied from class: SubstanceTheme
Creates a hue-shifted (in HSB space) version of this theme. This method is part of officially supported API.

Overrides:
hueShift in class SubstanceTheme
Parameters:
hueShiftFactor - Value in -1.0...1.0 range.
Returns:
Hue-shifted version of this theme.