Package net.infonode.tabbedpanel.border
Class GradientTabAreaBorder
java.lang.Object
net.infonode.tabbedpanel.border.GradientTabAreaBorder
- All Implemented Interfaces:
Serializable
,Border
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGradientTabAreaBorder
(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
Modifier and TypeMethodDescriptionboolean
void
paintBorder
(Component component, Graphics g, int x, int y, int width, int height)
-
Constructor Details
-
GradientTabAreaBorder
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
Constructor.- Parameters:
topColor
- the color of the component edge opposite to the tabbed panel content panelbottomColor
- the color of the component edge closest to the tabbed panel content panel
-
GradientTabAreaBorder
Constructor.- Parameters:
topColorProvider
- provides the color of the component edge opposite to the tabbed panel content panelbottomColorProvider
- provides the color of the component edge closest to the tabbed panel content panel
-
-
Method Details
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaque
in interfaceBorder
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
-