net.infonode.tabbedpanel.border
Class TabAreaLineBorder

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

public class TabAreaLineBorder
extends Object
implements Border, Serializable

TabAreaLineBorder draws a 1 pixel wide border on all sides except the side towards the content area of a tabbed panel.

Since:
ITP 1.1.0
Version:
$Revision: 1.19 $
See Also:
Tab, TabbedPanel, TabbedPanelProperties, TabAreaProperties, TabAreaComponentsProperties, Serialized Form

Constructor Summary
TabAreaLineBorder()
          Constructs a TabAreaLineBorder with color based on the look and feel
TabAreaLineBorder(boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight)
          Constructor.
TabAreaLineBorder(Color color)
          Constructs a TabAreaLineBorder with the give color
TabAreaLineBorder(Color color, boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight)
          Constructor.
TabAreaLineBorder(ColorProvider colorProvider, boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight)
          Constructor.
 
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

TabAreaLineBorder

public TabAreaLineBorder()
Constructs a TabAreaLineBorder with color based on the look and feel


TabAreaLineBorder

public TabAreaLineBorder(Color color)
Constructs a TabAreaLineBorder with the give color

Parameters:
color - color for the border

TabAreaLineBorder

public TabAreaLineBorder(boolean drawTop,
                         boolean drawLeft,
                         boolean drawRight,
                         boolean flipLeftRight)
Constructor.

Parameters:
drawTop - draw the top line
drawLeft - draw the left line
drawRight - draw the right line
flipLeftRight - if true the left line is rotated so that it is always to the left or at the top and vice versa for the right line, if false the left and right lines are rotated the same way as the other lines

TabAreaLineBorder

public TabAreaLineBorder(Color color,
                         boolean drawTop,
                         boolean drawLeft,
                         boolean drawRight,
                         boolean flipLeftRight)
Constructor.

Parameters:
color - the line color
drawTop - draw the top line
drawLeft - draw the left line
drawRight - draw the right line
flipLeftRight - if true the left line is rotated so that it is always to the left or at the top and vice versa for the right line, if false the left and right lines are rotated the same way as the other lines

TabAreaLineBorder

public TabAreaLineBorder(ColorProvider colorProvider,
                         boolean drawTop,
                         boolean drawLeft,
                         boolean drawRight,
                         boolean flipLeftRight)
Constructor.

Parameters:
colorProvider - the line color provider
drawTop - draw the top line
drawLeft - draw the left line
drawRight - draw the right line
flipLeftRight - if true the left line is rotated so that it is always to the left or at the top and vice versa for the right line, if false the left and right lines are rotated the same way as the other lines
Method Detail

isBorderOpaque

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

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


Copyright © 2007 NNL Technology AB. All Rights Reserved.