net.infonode.tabbedpanel.border

Class TabHighlightBorder

public class TabHighlightBorder extends Object implements Border, Serializable

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.

Version: $Revision: 1.19 $

Author: $Author: jesper $

See Also: Tab TabbedPanel TabbedPanelProperties

Constructor Summary
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(Color color, boolean openBorder)
Constructs a TabHighlightBorder with the given color as highlight color
TabHighlightBorder(ColorProvider colorProvider, boolean openBorder)
Constructs a TabHighlightBorder with the given color as highlight color
Method Summary
InsetsgetBorderInsets(Component c)
booleanisBorderOpaque()
voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height)

Constructor Detail

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

public TabHighlightBorder(Color color, boolean openBorder)
Constructs a TabHighlightBorder with the given color as highlight color

Parameters: color the highlight color openBorder when true, no highlighting is drawn on the side towards a TabbedPanel's content area, otherwise false

TabHighlightBorder

public TabHighlightBorder(ColorProvider colorProvider, boolean openBorder)
Constructs a TabHighlightBorder with the given color as highlight color

Parameters: colorProvider the highlight color provider openBorder when true, no highlighting is drawn on the side towards a TabbedPanel's content area, otherwise false

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)

isBorderOpaque

public boolean isBorderOpaque()

paintBorder

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