Package net.infonode.tabbedpanel.border
Class TabAreaLineBorder
java.lang.Object
net.infonode.tabbedpanel.border.TabAreaLineBorder
- All Implemented Interfaces:
Serializable
,Border
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a TabAreaLineBorder with color based on the look and feelTabAreaLineBorder
(boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight) Constructor.TabAreaLineBorder
(Color color) Constructs a TabAreaLineBorder with the give colorTabAreaLineBorder
(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
Modifier and TypeMethodDescriptionboolean
void
paintBorder
(Component c, Graphics g, int x, int y, int width, int height)
-
Constructor Details
-
TabAreaLineBorder
public TabAreaLineBorder()Constructs a TabAreaLineBorder with color based on the look and feel -
TabAreaLineBorder
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 linedrawLeft
- draw the left linedrawRight
- draw the right lineflipLeftRight
- 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 colordrawTop
- draw the top linedrawLeft
- draw the left linedrawRight
- draw the right lineflipLeftRight
- 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 providerdrawTop
- draw the top linedrawLeft
- draw the left linedrawRight
- draw the right lineflipLeftRight
- 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 Details
-
isBorderOpaque
public boolean isBorderOpaque()- Specified by:
isBorderOpaque
in interfaceBorder
-
paintBorder
- Specified by:
paintBorder
in interfaceBorder
-
getBorderInsets
- Specified by:
getBorderInsets
in interfaceBorder
-