org.jvnet.substance.colorscheme
Class InvertedColorScheme

java.lang.Object
  extended by org.jvnet.substance.colorscheme.BaseColorScheme
      extended by org.jvnet.substance.colorscheme.InvertedColorScheme
All Implemented Interfaces:
SchemeBaseColors, SchemeDerivedColors, SubstanceColorScheme, SubstanceTrait

public class InvertedColorScheme
extends BaseColorScheme

Implementation of inverted color scheme. Inverted color scheme is based on some original color scheme, switching the dark colors by light colors and inverting the foreground color.

Author:
Kirill Grouchnikov

Field Summary
 
Fields inherited from class org.jvnet.substance.colorscheme.BaseColorScheme
derivedColorsResolver, displayName, isDark
 
Constructor Summary
InvertedColorScheme(SubstanceColorScheme origScheme)
          Creates a new inverted scheme.
 
Method Summary
 java.awt.Color getDarkColor()
          Retrieves the dark color.
 java.awt.Color getExtraLightColor()
          Retrieves the extra color.
 java.awt.Color getForegroundColor()
          Retrieves the foreground color.
 java.awt.Color getLightColor()
          Retrieves the light color.
 java.awt.Color getMidColor()
          Retrieves the medium color.
 SubstanceColorScheme getOrigScheme()
          Returns the original color scheme.
 java.awt.Color getUltraDarkColor()
          Retrieves the ultra-dark color.
 java.awt.Color getUltraLightColor()
          Retrieves the ultra-light color.
 
Methods inherited from class org.jvnet.substance.colorscheme.BaseColorScheme
getBackgroundFillColor, getDisplayName, getFocusRingColor, getLineColor, getSelectionBackgroundColor, getSelectionForegroundColor, getTextBackgroundFillColor, getWatermarkDarkColor, getWatermarkLightColor, getWatermarkStampColor, hueShift, invert, isDark, named, negate, saturate, shade, shift, shiftBackground, tint, tone, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvertedColorScheme

public InvertedColorScheme(SubstanceColorScheme origScheme)
Creates a new inverted scheme.

Parameters:
origScheme - The original color scheme.
Method Detail

getForegroundColor

public java.awt.Color getForegroundColor()
Description copied from interface: SchemeBaseColors
Retrieves the foreground color.

Returns:
Foreground color.

getUltraLightColor

public java.awt.Color getUltraLightColor()
Description copied from interface: SchemeBaseColors
Retrieves the ultra-light color.

Returns:
Ultra-light color.

getExtraLightColor

public java.awt.Color getExtraLightColor()
Description copied from interface: SchemeBaseColors
Retrieves the extra color.

Returns:
Extra color.

getLightColor

public java.awt.Color getLightColor()
Description copied from interface: SchemeBaseColors
Retrieves the light color.

Returns:
Light color.

getMidColor

public java.awt.Color getMidColor()
Description copied from interface: SchemeBaseColors
Retrieves the medium color.

Returns:
Medium color.

getDarkColor

public java.awt.Color getDarkColor()
Description copied from interface: SchemeBaseColors
Retrieves the dark color.

Returns:
Dark color.

getUltraDarkColor

public java.awt.Color getUltraDarkColor()
Description copied from interface: SchemeBaseColors
Retrieves the ultra-dark color.

Returns:
Ultra-dark color.

getOrigScheme

public SubstanceColorScheme getOrigScheme()
Returns the original color scheme.

Returns:
The original color scheme.