net.infonode.tabbedpanel.border

Class GradientTabAreaBorder

public class GradientTabAreaBorder extends Object implements Border, Serializable

Paints a gradient background for a tab area component. The background blends from one color on the component edge opposite to the tabbed panel content panel to the another color on the component edge closest to the tabbed panel content panel.

Since: ITP 1.1.0

Version: $Revision: 1.16 $

Author: $Author: jesper $

Constructor Summary
GradientTabAreaBorder(Color topColor)
Creates a border where the color of the component edge closest to the tabben panel content panel will be the default control color.
GradientTabAreaBorder(Color topColor, Color bottomColor)
Constructor.
GradientTabAreaBorder(ColorProvider topColorProvider, ColorProvider bottomColorProvider)
Constructor.
Method Summary
InsetsgetBorderInsets(Component c)
booleanisBorderOpaque()
voidpaintBorder(Component component, Graphics g, int x, int y, int width, int height)

Constructor Detail

GradientTabAreaBorder

public GradientTabAreaBorder(Color topColor)
Creates a border where the color of the component edge closest to the tabben panel content panel will be the default control color.

Parameters: topColor the color of the component edge opposite to the tabbed panel content panel

GradientTabAreaBorder

public GradientTabAreaBorder(Color topColor, Color bottomColor)
Constructor.

Parameters: topColor the color of the component edge opposite to the tabbed panel content panel bottomColor the color of the component edge closest to the tabbed panel content panel

GradientTabAreaBorder

public GradientTabAreaBorder(ColorProvider topColorProvider, ColorProvider bottomColorProvider)
Constructor.

Parameters: topColorProvider provides the color of the component edge opposite to the tabbed panel content panel bottomColorProvider provides the color of the component edge closest to the tabbed panel content panel

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)

isBorderOpaque

public boolean isBorderOpaque()

paintBorder

public void paintBorder(Component component, Graphics g, int x, int y, int width, int height)