org.jvnet.substance.theme.transform
Class ShiftTransform

java.lang.Object
  extended by org.jvnet.substance.theme.transform.ShiftTransform
All Implemented Interfaces:
ThemeTransform

public class ShiftTransform
extends java.lang.Object
implements ThemeTransform

Theme transformation that shifts the original theme.

Author:
Kirill Grouchnikov

Constructor Summary
ShiftTransform(java.awt.Color backgroundShiftColor, double backgroundShiftFactor, java.awt.Color foregroundShiftColor, double foregroundShiftFactor)
          Creates a new transformation.
 
Method Summary
 SubstanceTheme transform(SubstanceTheme theme)
          Transforms the specified theme.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShiftTransform

public ShiftTransform(java.awt.Color backgroundShiftColor,
                      double backgroundShiftFactor,
                      java.awt.Color foregroundShiftColor,
                      double foregroundShiftFactor)
Creates a new transformation.

Parameters:
backgroundShiftColor - Shift color for background colors. Should have full opacity.
backgroundShiftFactor - Value in 0.0...1.0 range. Larger values shift more towards the specified color.
foregroundShiftColor - Shift color for foreground colors. Should have full opacity.
foregroundShiftFactor - Value in 0.0...1.0 range. Larger values shift more towards the specified color.
Method Detail

transform

public SubstanceTheme transform(SubstanceTheme theme)
Description copied from interface: ThemeTransform
Transforms the specified theme.

Specified by:
transform in interface ThemeTransform
Parameters:
theme - Original theme.
Returns:
Transformed theme.