TabAreaLineBorder
instead with
TabbedPanelProperties.TAB_SPACING
set to -1.public class TabLineBorder
extends java.lang.Object
implements javax.swing.border.Border, java.io.Serializable
Tab
. If tab spacing in the
tabbed panel is 0 then the border will only draw a single line between two adjacent tabs.Tab
,
TabbedPanel
,
Serialized FormConstructor and Description |
---|
TabLineBorder()
Deprecated.
Constructor.
|
TabLineBorder(boolean drawBottomLine,
boolean drawTopLine)
Deprecated.
Constructs a TabLineBorder that draws lines on two, three or four sides of the
tab.
|
TabLineBorder(java.awt.Color color)
Deprecated.
Constructs a TabLineBorder that draws lines on three sides of the tab.
|
TabLineBorder(java.awt.Color color,
boolean drawBottomLine)
Deprecated.
Constructs a TabLineBorder that draws lines on three or four sides of the tab.
|
TabLineBorder(java.awt.Color color,
boolean drawBottomLine,
boolean drawTopLine)
Deprecated.
Constructs a TabLineBorder that draws lines on two, three or four sides of the
tab.
|
TabLineBorder(java.awt.Color color,
javax.swing.border.Border innerBorder)
Deprecated.
Constructs a TabLineBorder that draws lines on three sides of the tab.
|
TabLineBorder(java.awt.Color color,
javax.swing.border.Border innerBorder,
boolean drawBottomLine)
Deprecated.
Constructs a TabLineBorder that draws lines on three or four sides of the tab.
|
TabLineBorder(ColorProvider colorProvider,
boolean drawBottomLine,
boolean drawTopLine)
Deprecated.
Constructs a TabLineBorder that draws lines on two, three or four sides of the
tab.
|
TabLineBorder(ColorProvider colorProvider,
javax.swing.border.Border innerBorder,
boolean drawBottomLine,
boolean drawTopLine)
Deprecated.
Constructs a TabLineBorder that draws lines on three or four sides of the tab.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Deprecated.
|
boolean |
isBorderOpaque()
Deprecated.
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Deprecated.
|
public TabLineBorder()
public TabLineBorder(java.awt.Color color)
color
- the line colorpublic TabLineBorder(java.awt.Color color, boolean drawBottomLine)
color
- the line colordrawBottomLine
- true if a line should be drawn on the side towards the
tabbed panel's content area, otherwise falsepublic TabLineBorder(boolean drawBottomLine, boolean drawTopLine)
drawBottomLine
- true if a line should be drawn on the side towards the
tabbed panel's content area, otherwise falsedrawTopLine
- true if a line should be drawn on the side opposite to
the tabbed panel's content area, otherwise falsepublic TabLineBorder(java.awt.Color color, boolean drawBottomLine, boolean drawTopLine)
color
- the line colordrawBottomLine
- true if a line should be drawn on the side towards the
tabbed panel's content area, otherwise falsedrawTopLine
- true if a line should be drawn on the side opposite to
the tabbed panel's content area, otherwise falsepublic TabLineBorder(ColorProvider colorProvider, boolean drawBottomLine, boolean drawTopLine)
colorProvider
- the line color providerdrawBottomLine
- true if a line should be drawn on the side towards the
tabbed panel's content area, otherwise falsedrawTopLine
- true if a line should be drawn on the side opposite to
the tabbed panel's content area, otherwise falsepublic TabLineBorder(java.awt.Color color, javax.swing.border.Border innerBorder)
color
- the line colorinnerBorder
- border to draw inside of this TabLineBorderpublic TabLineBorder(java.awt.Color color, javax.swing.border.Border innerBorder, boolean drawBottomLine)
color
- the line colorinnerBorder
- border to draw inside of this TabLineBorderdrawBottomLine
- true if a line should be drawn on the side towards the
tabbed panel's content area, otherwise falsepublic TabLineBorder(ColorProvider colorProvider, javax.swing.border.Border innerBorder, boolean drawBottomLine, boolean drawTopLine)
colorProvider
- the line colorinnerBorder
- border to draw inside of this TabLineBorderdrawBottomLine
- true if a line should be drawn on the side towards the
tabbed panel's content area, otherwise falsedrawTopLine
- true if a line should be drawn on the side opposite to
the tabbed panel's content area, otherwise falsepublic void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets
in interface javax.swing.border.Border
public boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border