org.jvnet.substance
Class SubstanceGradientBackgroundDelegate
java.lang.Object
org.jvnet.substance.SubstanceGradientBackgroundDelegate
public class SubstanceGradientBackgroundDelegate
- extends Object
Delegate for painting gradient backgrounds.
- Author:
- Kirill Grouchnikov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubstanceGradientBackgroundDelegate
public SubstanceGradientBackgroundDelegate()
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.