net.infonode.tabbedpanel.border
Class GradientTabAreaBorder

java.lang.Object
  extended bynet.infonode.tabbedpanel.border.GradientTabAreaBorder
All Implemented Interfaces:
Border, Serializable

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 $
See Also:
Serialized Form

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
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component component, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

isBorderOpaque

public boolean isBorderOpaque()
Specified by:
isBorderOpaque in interface Border

paintBorder

public void paintBorder(Component component,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border


Copyright © 2007 NNL Technology AB. All Rights Reserved.