org.jvnet.substance
Class SubstanceGradientBackgroundDelegate

java.lang.Object
  extended by org.jvnet.substance.SubstanceGradientBackgroundDelegate

public class SubstanceGradientBackgroundDelegate
extends Object

Delegate for painting gradient backgrounds.

Author:
Kirill Grouchnikov

Constructor Summary
SubstanceGradientBackgroundDelegate()
           
 
Method Summary
 void update(Graphics g, Component c, int width, int height, ColorSchemeEnum colorSchemeEnum, boolean hasDarkBorder)
          Updates the specified component with the background that matches the provided parameters.
 void update(Graphics g, Component c, Rectangle rect, ColorSchemeEnum colorSchemeEnum, boolean hasDarkBorder)
          Updates the specified component with the background that matches the provided parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubstanceGradientBackgroundDelegate

public SubstanceGradientBackgroundDelegate()
Method Detail

update

public void update(Graphics g,
                   Component c,
                   int width,
                   int height,
                   ColorSchemeEnum colorSchemeEnum,
                   boolean hasDarkBorder)
Updates the specified component with the background that matches the provided parameters.

Parameters:
g - Graphic context.
c - Component.
width - Background width.
height - Background height.
colorSchemeEnum - Color scheme for the background.
hasDarkBorder - If true, the resulting image will have dark border.

update

public void update(Graphics g,
                   Component c,
                   Rectangle rect,
                   ColorSchemeEnum colorSchemeEnum,
                   boolean hasDarkBorder)
Updates the specified component with the background that matches the provided parameters.

Parameters:
g - Graphic context.
c - Component.
rect - Background rectangle.
colorSchemeEnum - Color scheme for the background.
hasDarkBorder - If true, the resulting image will have dark border.