net.infonode.tabbedpanel.border
Class TabHighlightBorder

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

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 $
See Also:
Tab, TabbedPanel, TabbedPanelProperties, Serialized Form

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
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, 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

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

paintBorder

public void paintBorder(Component c,
                        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

isBorderOpaque

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


Copyright © 2007 NNL Technology AB. All Rights Reserved.