|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.infonode.tabbedpanel.border.TabAreaLineBorder
public class TabAreaLineBorder
TabAreaLineBorder draws a 1 pixel wide border on all sides except the side towards the content area of a tabbed panel.
Tab,
TabbedPanel,
TabbedPanelProperties,
TabAreaProperties,
TabAreaComponentsProperties,
Serialized Form| Field Summary | |
|---|---|
private ColorProvider |
color
|
private boolean |
drawLeft
|
private boolean |
drawRight
|
private boolean |
drawTop
|
private boolean |
flipLeftRight
|
private static long |
serialVersionUID
|
| 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(java.awt.Color color)
Constructs a TabAreaLineBorder with the give color |
|
TabAreaLineBorder(java.awt.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 | |
|---|---|
private boolean |
drawBottom(Direction orientation)
|
private boolean |
drawLeft(Direction orientation)
|
private boolean |
drawRight(Direction orientation)
|
private boolean |
drawTop(Direction orientation)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
private static Direction |
getTabAreaDirection(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 |
| Field Detail |
|---|
private static final long serialVersionUID
private ColorProvider color
private boolean drawTop
private boolean drawLeft
private boolean drawRight
private boolean flipLeftRight
| Constructor Detail |
|---|
public TabAreaLineBorder()
public TabAreaLineBorder(java.awt.Color color)
color - color for the border
public TabAreaLineBorder(boolean drawTop,
boolean drawLeft,
boolean drawRight,
boolean flipLeftRight)
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
public TabAreaLineBorder(java.awt.Color color,
boolean drawTop,
boolean drawLeft,
boolean drawRight,
boolean flipLeftRight)
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
public TabAreaLineBorder(ColorProvider colorProvider,
boolean drawTop,
boolean drawLeft,
boolean drawRight,
boolean flipLeftRight)
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 Detail |
|---|
public boolean isBorderOpaque()
isBorderOpaque in interface javax.swing.border.Border
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.Borderprivate boolean drawTop(Direction orientation)
private boolean drawLeft(Direction orientation)
private boolean drawRight(Direction orientation)
private boolean drawBottom(Direction orientation)
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.Borderprivate static Direction getTabAreaDirection(java.awt.Component c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||