|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.tabbedpanel.border.TabHighlightBorder
public class TabHighlightBorder
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.
Tab
,
TabbedPanel
,
TabbedPanelProperties
,
Serialized FormConstructor Summary | |
---|---|
TabHighlightBorder()
Constructs a TabHighlightBorder that acts as an empty border, i.e. |
|
TabHighlightBorder(java.awt.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 | |
---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
boolean |
isBorderOpaque()
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabHighlightBorder()
public TabHighlightBorder(java.awt.Color color, boolean openBorder)
color
- the highlight coloropenBorder
- when true, no highlighting is drawn on the side towards a
TabbedPanel's content area, otherwise falsepublic TabHighlightBorder(ColorProvider colorProvider, boolean openBorder)
colorProvider
- the highlight color provideropenBorder
- when true, no highlighting is drawn on the side towards a
TabbedPanel's content area, otherwise falseMethod Detail |
---|
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |