Substance look and feel - shifted themes

Shifted theme is based on shifting another (not necessarily simple) theme towards some color. There are three basic shifting kinds:

In order to create shifted themes, use the following API in SubstanceTheme:

  /**
   * Creates a tinted (shifted towards white) version of <code>this</code>
   * theme. This method is part of officially supported API.
   
   @param tintFactor
   *            Value in 0.0...1.0 range. Larger values shift more towards
   *            white color.
   @return Tinted version of <code>this</code> theme.
   */
  public SubstanceTheme tint(double tintFactor)

  /**
   * Creates a toned (shifted towards gray) version of <code>this</code>
   * theme. This method is part of officially supported API.
   
   @param toneFactor
   *            Value in 0.0...1.0 range. Larger values shift more towards
   *            gray color.
   @return Toned version of <code>this</code> theme.
   */
  public SubstanceTheme tone(double toneFactor)

  /**
   * Creates a shaded (shifted towards black) version of <code>this</code>
   * theme. This method is part of officially supported API.
   
   @param shadeFactor
   *            Value in 0.0...1.0 range. Larger values shift more towards
   *            black color.
   @return Shaded version of <code>this</code> theme.
   */
  public SubstanceTheme shade(double shadeFactor)

This is the only officially supported way to create an shifted theme. Note that even though the constructors for org.jvnet.substance.theme.SubstanceTintedTheme, org.jvnet.substance.theme.SubstanceTonedTheme and org.jvnet.substance.theme.SubstanceShadedTheme are public, they will not create correct shifted themes for non-simple (derived and complex) themes. Here are examples of shifted themes: Tinted Aqua, Toned Aqua and Shaded Aqua.

Following are examples of shifted non-simple themes:

Mixed Bottle Green & Lime Green and its tinted, toned and shaded versions:

Complex Field of Wheat and its tinted, toned and shaded versions: