org.jvnet.substance.theme
Class SubstanceInvertedTheme

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

public class SubstanceInvertedTheme
extends SubstanceWrapperTheme

Inverted theme. Inverted theme is based on some original theme, switching the dark colors by light colors and inverting the foreground color. This class is part of officially supported API.

Author:
Kirill Grouchnikov
See Also:
InvertedColorScheme

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
 
Constructor Summary
SubstanceInvertedTheme(SubstanceTheme substanceTheme)
          Creates a new inverted theme.
 
Method Summary
 java.awt.Color getWatermarkStampColor()
          Returns the translucent watermark stamp color of this theme.
 SubstanceTheme hueShift(double hueShiftFactor)
          Creates a hue-shifted (in HSB space) version of this theme.
 SubstanceTheme invert()
          Creates an inverted version of this theme.
 SubstanceTheme negate()
          Creates a negated version of this theme.
 SubstanceTheme saturate(double saturateFactor, boolean toSaturateEverything)
          Creates a saturated or desaturated version of this theme.
 SubstanceTheme shade(double shadeFactor)
          Creates a shaded (shifted towards black) version of this theme.
 SubstanceTheme tint(double tintFactor)
          Creates a tinted (shifted towards white) version of this theme.
 SubstanceTheme tone(double toneFactor)
          Creates a toned (shifted towards gray) 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, 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, getWatermarkTheme, isDark, protanopia, saturate, toString, tritanopia
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubstanceInvertedTheme

public SubstanceInvertedTheme(SubstanceTheme substanceTheme)
Creates a new inverted theme. Do not use this constructor directly, use SubstanceTheme.invert() instead.

Parameters:
substanceTheme - The original theme.
Method Detail

invert

public SubstanceTheme invert()
Description copied from class: SubstanceTheme
Creates an inverted version of this theme. This method is part of officially supported API.

Overrides:
invert in class SubstanceTheme
Returns:
Inverted version of this theme.

negate

public SubstanceTheme negate()
Description copied from class: SubstanceTheme
Creates a negated version of this theme. This method is part of officially supported API.

Overrides:
negate in class SubstanceTheme
Returns:
Negated version of this theme.

getWatermarkStampColor

public java.awt.Color getWatermarkStampColor()
Description copied from class: SubstanceTheme
Returns the translucent watermark stamp color of this theme. This method is for internal use only.

Overrides:
getWatermarkStampColor in class SubstanceTheme
Returns:
Translucent watermark stamp color of this theme.

saturate

public SubstanceTheme saturate(double saturateFactor,
                               boolean toSaturateEverything)
Description copied from class: SubstanceTheme
Creates a saturated or desaturated version of this theme. The value and brightness stay the same. This method is part of officially supported API.

Overrides:
saturate in class SubstanceTheme
Parameters:
saturateFactor - Value in -1.0...1.0 range. Positive values create more saturated colors. Negative values create more desaturated colors.
toSaturateEverything - If true, all visual components of this theme will be saturated. If false, only the SubstanceTheme.getActiveTheme() will be saturated.
Returns:
Saturated version of this theme.

tint

public SubstanceTheme tint(double tintFactor)
Description copied from class: SubstanceTheme
Creates a tinted (shifted towards white) version of this theme. This method is part of officially supported API.

Overrides:
tint in class SubstanceTheme
Parameters:
tintFactor - Value in 0.0...1.0 range. Larger values shift more towards white color.
Returns:
Tinted version of this theme.

tone

public SubstanceTheme tone(double toneFactor)
Description copied from class: SubstanceTheme
Creates a toned (shifted towards gray) version of this theme. This method is part of officially supported API.

Overrides:
tone in class SubstanceTheme
Parameters:
toneFactor - Value in 0.0...1.0 range. Larger values shift more towards gray color.
Returns:
Toned version of this theme.

shade

public SubstanceTheme shade(double shadeFactor)
Description copied from class: SubstanceTheme
Creates a shaded (shifted towards black) version of this theme. This method is part of officially supported API.

Overrides:
shade in class SubstanceTheme
Parameters:
shadeFactor - Value in 0.0...1.0 range. Larger values shift more towards black color.
Returns:
Shaded version of 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.