org.jvnet.substance
Class SubstanceGradientBackgroundDelegate

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

public class SubstanceGradientBackgroundDelegate
extends java.lang.Object

Delegate for painting gradient backgrounds.

Author:
Kirill Grouchnikov

Constructor Summary
SubstanceGradientBackgroundDelegate()
          Creates a new gradien background delegate.
 
Method Summary
 void update(java.awt.Graphics g, java.awt.Component c, int width, int height, SubstanceTheme theme, float borderAlpha)
          Updates the specified component with the background that matches the provided parameters.
 void update(java.awt.Graphics g, java.awt.Component c, java.awt.Rectangle rect, SubstanceTheme theme, float borderAlpha)
          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()
Creates a new gradien background delegate.

Method Detail

update

public void update(java.awt.Graphics g,
                   java.awt.Component c,
                   int width,
                   int height,
                   SubstanceTheme theme,
                   float borderAlpha)
Updates the specified component with the background that matches the provided parameters.

Parameters:
g - Graphic context.
c - Component.
width - Background width.
height - Background height.
theme - Theme for the background.
borderAlpha - Border alpha.

update

public void update(java.awt.Graphics g,
                   java.awt.Component c,
                   java.awt.Rectangle rect,
                   SubstanceTheme theme,
                   float borderAlpha)
Updates the specified component with the background that matches the provided parameters.

Parameters:
g - Graphic context.
c - Component.
rect - Background rectangle.
theme - Theme for the background.
borderAlpha - Border alpha.