test.contrib
Class ParameterColorScheme

java.lang.Object
  extended by test.contrib.ParameterColorScheme
All Implemented Interfaces:
SchemeBaseColors, SchemeDerivedColors, SubstanceColorScheme, SubstanceTrait

public class ParameterColorScheme
extends java.lang.Object
implements SubstanceColorScheme


Field Summary
protected  java.awt.Color[] colors
          Setzt wieder das DefaultTheme auf die ?bergebene Componente (also das blaue Theme)
 
Constructor Summary
ParameterColorScheme(java.awt.Color[] colors)
           
 
Method Summary
 java.awt.Color getBackgroundFillColor()
          Returns the background fill color for this scheme.
 java.awt.Color getDarkColor()
          Retrieves the dark color.
 java.lang.String getDisplayName()
          Returns the display name of this trait.
 java.awt.Color getExtraLightColor()
          Retrieves the extra color.
 java.awt.Color getFocusRingColor()
          Returns the focus ring color for this scheme.
 java.awt.Color getForegroundColor()
          Retrieves the foreground color.
 java.awt.Color getLightBackgroundFillColor()
          Returns the light background fill color for this scheme.
 java.awt.Color getLightColor()
          Retrieves the light color.
 java.awt.Color getLineColor()
          Returns the line color for this scheme.
 java.awt.Color getMidColor()
          Retrieves the medium color.
 java.awt.Color getSelectionBackgroundColor()
          Returns the selection background color for this scheme.
 java.awt.Color getSelectionForegroundColor()
          Returns the selection foreground color for this scheme.
 java.awt.Color getUltraDarkColor()
          Retrieves the ultra-dark color.
 java.awt.Color getUltraLightColor()
          Retrieves the ultra-light color.
 java.awt.Color getWatermarkDarkColor()
          Returns the watermark dark color for this scheme.
 java.awt.Color getWatermarkLightColor()
          Returns the watermark light color for this scheme.
 java.awt.Color getWatermarkStampColor()
          Returns the watermark stamp color for this scheme.
 SubstanceColorScheme hueShift(double arg0)
          Creates a hue-shifted (in HSB space) version of this color scheme.
 SubstanceColorScheme invert()
          Creates an inverted version of this scheme.
 boolean isDark()
          Returns indication whether this color scheme uses dark colors.
 SubstanceColorScheme named(java.lang.String colorSchemeDisplayName)
          This method is a fluent-interface builder utility for setting the display name for this color scheme.
 SubstanceColorScheme negate()
          Creates a negated version of this scheme.
 SubstanceColorScheme saturate(double arg0)
          Creates a saturated or desaturated version of this scheme.
 SubstanceColorScheme shade(double arg0)
          Creates a shaded (shifted towards black) version of this color scheme.
 SubstanceColorScheme shift(java.awt.Color arg0, double arg1, java.awt.Color arg2, double arg3)
          Creates a shift version of this scheme.
 SubstanceColorScheme shiftBackground(java.awt.Color arg0, double arg1)
          Creates a shift version of this scheme.
 SubstanceColorScheme tint(double arg0)
          Creates a tinted (shifted towards white) version of this color scheme.
 SubstanceColorScheme tone(double arg0)
          Creates a toned (shifted towards gray) version of this color scheme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

colors

protected java.awt.Color[] colors
Setzt wieder das DefaultTheme auf die ?bergebene Componente (also das blaue Theme)

Constructor Detail

ParameterColorScheme

public ParameterColorScheme(java.awt.Color[] colors)
Method Detail

hueShift

public SubstanceColorScheme hueShift(double arg0)
Description copied from interface: SubstanceColorScheme
Creates a hue-shifted (in HSB space) version of this color scheme.

Specified by:
hueShift in interface SubstanceColorScheme
Parameters:
arg0 - Value in -1.0...1.0 range.
Returns:
Hue-shifted version of this scheme.

invert

public SubstanceColorScheme invert()
Description copied from interface: SubstanceColorScheme
Creates an inverted version of this scheme.

Specified by:
invert in interface SubstanceColorScheme
Returns:
Inverted version of this scheme.

isDark

public boolean isDark()
Description copied from interface: SubstanceColorScheme
Returns indication whether this color scheme uses dark colors. Note that this method may be removed in the future.

Specified by:
isDark in interface SubstanceColorScheme
Returns:
true if this color scheme uses dark colors, false otherwise.

negate

public SubstanceColorScheme negate()
Description copied from interface: SubstanceColorScheme
Creates a negated version of this scheme.

Specified by:
negate in interface SubstanceColorScheme
Returns:
Negated version of this scheme.

saturate

public SubstanceColorScheme saturate(double arg0)
Description copied from interface: SubstanceColorScheme
Creates a saturated or desaturated version of this scheme. The value and brightness stay the same.

Specified by:
saturate in interface SubstanceColorScheme
Parameters:
arg0 - Value in -1.0...1.0 range. Positive values create more saturated colors. Negative values create more desaturated colors.
Returns:
Saturated version of this scheme.

shade

public SubstanceColorScheme shade(double arg0)
Description copied from interface: SubstanceColorScheme
Creates a shaded (shifted towards black) version of this color scheme.

Specified by:
shade in interface SubstanceColorScheme
Parameters:
arg0 - Value in 0.0...1.0 range. Larger values shift more towards black color.
Returns:
Shaded version of this scheme.

shift

public SubstanceColorScheme shift(java.awt.Color arg0,
                                  double arg1,
                                  java.awt.Color arg2,
                                  double arg3)
Description copied from interface: SubstanceColorScheme
Creates a shift version of this scheme.

Specified by:
shift in interface SubstanceColorScheme
Parameters:
arg0 - Shift color for background colors. Should have full opacity.
arg1 - Value in 0.0...1.0 range. Larger values shift more towards the specified color.
arg2 - Shift color for foreground colors. Should have full opacity.
arg3 - Value in 0.0...1.0 range. Larger values shift more towards the specified color.
Returns:
Shift version of this scheme.

shiftBackground

public SubstanceColorScheme shiftBackground(java.awt.Color arg0,
                                            double arg1)
Description copied from interface: SubstanceColorScheme
Creates a shift version of this scheme.

Specified by:
shiftBackground in interface SubstanceColorScheme
Parameters:
arg0 - Shift color for background colors. Should have full opacity.
arg1 - Value in 0.0...1.0 range. Larger values shift more towards the specified color.
Returns:
Shift version of this scheme that does not change the foreground color.

tint

public SubstanceColorScheme tint(double arg0)
Description copied from interface: SubstanceColorScheme
Creates a tinted (shifted towards white) version of this color scheme.

Specified by:
tint in interface SubstanceColorScheme
Parameters:
arg0 - Value in 0.0...1.0 range. Larger values shift more towards white color.
Returns:
Tinted version of this scheme.

tone

public SubstanceColorScheme tone(double arg0)
Description copied from interface: SubstanceColorScheme
Creates a toned (shifted towards gray) version of this color scheme.

Specified by:
tone in interface SubstanceColorScheme
Parameters:
arg0 - Value in 0.0...1.0 range. Larger values shift more towards gray color.
Returns:
Toned version of this scheme.

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: SubstanceTrait
Returns the display name of this trait. This method is part of officially supported API.

Specified by:
getDisplayName in interface SubstanceTrait
Returns:
The display name of this trait.

getDarkColor

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

Specified by:
getDarkColor in interface SchemeBaseColors
Returns:
Dark color.

getExtraLightColor

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

Specified by:
getExtraLightColor in interface SchemeBaseColors
Returns:
Extra color.

getForegroundColor

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

Specified by:
getForegroundColor in interface SchemeBaseColors
Returns:
Foreground color.

getLightColor

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

Specified by:
getLightColor in interface SchemeBaseColors
Returns:
Light color.

getMidColor

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

Specified by:
getMidColor in interface SchemeBaseColors
Returns:
Medium color.

getUltraDarkColor

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

Specified by:
getUltraDarkColor in interface SchemeBaseColors
Returns:
Ultra-dark color.

getUltraLightColor

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

Specified by:
getUltraLightColor in interface SchemeBaseColors
Returns:
Ultra-light color.

getBackgroundFillColor

public java.awt.Color getBackgroundFillColor()
Description copied from interface: SchemeDerivedColors
Returns the background fill color for this scheme.

Specified by:
getBackgroundFillColor in interface SchemeDerivedColors
Returns:
The background fill color for this scheme.

getFocusRingColor

public java.awt.Color getFocusRingColor()
Description copied from interface: SchemeDerivedColors
Returns the focus ring color for this scheme.

Specified by:
getFocusRingColor in interface SchemeDerivedColors
Returns:
The focus ring color for this scheme.

getLightBackgroundFillColor

public java.awt.Color getLightBackgroundFillColor()
Description copied from interface: SchemeDerivedColors
Returns the light background fill color for this scheme.

Specified by:
getLightBackgroundFillColor in interface SchemeDerivedColors
Returns:
The light background fill color for this scheme.

getLineColor

public java.awt.Color getLineColor()
Description copied from interface: SchemeDerivedColors
Returns the line color for this scheme.

Specified by:
getLineColor in interface SchemeDerivedColors
Returns:
The line color for this scheme.

getSelectionBackgroundColor

public java.awt.Color getSelectionBackgroundColor()
Description copied from interface: SchemeDerivedColors
Returns the selection background color for this scheme.

Specified by:
getSelectionBackgroundColor in interface SchemeDerivedColors
Returns:
The selection background color for this scheme.

getSelectionForegroundColor

public java.awt.Color getSelectionForegroundColor()
Description copied from interface: SchemeDerivedColors
Returns the selection foreground color for this scheme.

Specified by:
getSelectionForegroundColor in interface SchemeDerivedColors
Returns:
The selection foreground color for this scheme.

getWatermarkDarkColor

public java.awt.Color getWatermarkDarkColor()
Description copied from interface: SchemeDerivedColors
Returns the watermark dark color for this scheme.

Specified by:
getWatermarkDarkColor in interface SchemeDerivedColors
Returns:
Watermark dark color for this scheme.

getWatermarkLightColor

public java.awt.Color getWatermarkLightColor()
Description copied from interface: SchemeDerivedColors
Returns the watermark light color for this scheme.

Specified by:
getWatermarkLightColor in interface SchemeDerivedColors
Returns:
Watermark light color for this scheme.

getWatermarkStampColor

public java.awt.Color getWatermarkStampColor()
Description copied from interface: SchemeDerivedColors
Returns the watermark stamp color for this scheme.

Specified by:
getWatermarkStampColor in interface SchemeDerivedColors
Returns:
Watermark stamp color for this scheme.

named

public SubstanceColorScheme named(java.lang.String colorSchemeDisplayName)
Description copied from interface: SubstanceColorScheme
This method is a fluent-interface builder utility for setting the display name for this color scheme. The implementation must return the same this instance.

Specified by:
named in interface SubstanceColorScheme
Parameters:
colorSchemeDisplayName - New display name for this color scheme.
Returns:
This color scheme.