Package net.infonode.tabbedpanel.border
Class TabHighlightBorder
java.lang.Object
net.infonode.tabbedpanel.border.TabHighlightBorder
- All Implemented Interfaces:
Serializable
,Border
TabHighlightBorder draws a 1 pixel wide highlight on the top and left side of the
tab. It will not draw highlight on the side towards a TabbedPanel's content area
if the border is constructed with open border.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a TabHighlightBorder that acts as an empty border, i.e.TabHighlightBorder
(Color color, boolean openBorder) Constructs a TabHighlightBorder with the given color as highlight colorTabHighlightBorder
(ColorProvider colorProvider, boolean openBorder) Constructs a TabHighlightBorder with the given color as highlight color -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height)
-
Constructor Details
-
TabHighlightBorder
public TabHighlightBorder()Constructs a TabHighlightBorder that acts as an empty border, i.e. no highlight is drawn but it will report the same insets as if the highlight was drawn -
TabHighlightBorder
Constructs a TabHighlightBorder with the given color as highlight color- Parameters:
color
- the highlight coloropenBorder
- when true, no highlighting is drawn on the side towards a TabbedPanel's content area, otherwise false
-
TabHighlightBorder
Constructs a TabHighlightBorder with the given color as highlight color- Parameters:
colorProvider
- the highlight color provideropenBorder
- when true, no highlighting is drawn on the side towards a TabbedPanel's content area, otherwise false
-
-
Method Details
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaque
in interfaceBorder
-