|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.tabbedpanel.border.OpenContentBorder
public class OpenContentBorder
OpenContentBorder is a border that draws a 1 pixel wide line border around a component that is used as content area component in a tabbed panel. The border also optionally draws a highlight inside the line on the top and left sides of the component. It is open, i.e. no content border will be drawn where the highlighted tab in the tabbed panel is located.
If the highlighted tab has a ShapedBorder
its
shape will be used to calculate where the OpenContentBorder should be open.
TabbedPanel
,
Serialized FormField Summary | |
---|---|
private ColorProvider |
bottomRightLineColor
|
private ColorProvider |
highlightColorProvider
|
private static long |
serialVersionUID
|
private int |
tabLeftInset
|
private ColorProvider |
topLeftLineColor
|
Constructor Summary | |
---|---|
OpenContentBorder()
Constructor. |
|
OpenContentBorder(java.awt.Color color)
Constructs a OpenContentBorder without highlight and with the given color as line color. |
|
OpenContentBorder(java.awt.Color color,
java.awt.Color highlightColor)
Constructs a OpenContentBorder with highlight and with the given colors as line color and highlight color. |
|
OpenContentBorder(java.awt.Color color,
int tabLeftInset)
Constructor. |
|
OpenContentBorder(ColorProvider topLeftLineColor,
ColorProvider bottomRightLineColor,
ColorProvider highlightColorProvider,
int tabLeftInset)
Constructs a OpenContentBorder with highlight and with the given colors as line color and highlight color. |
|
OpenContentBorder(ColorProvider lineColor,
ColorProvider highlightColorProvider,
int tabLeftInset)
Constructs a OpenContentBorder with highlight and with the given colors as line color and highlight color. |
Method Summary | |
---|---|
private static void |
drawLine(java.awt.Graphics graphics,
int x1,
int y1,
int x2,
int y2)
|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
|
private static int |
getLineIntersection(int edge,
float x1,
float y1,
float x2,
float y2,
Direction orientation)
|
private static java.awt.Point |
getTabBounds(java.awt.Component c,
Tab tab,
Direction orientation,
int x,
int y,
int width,
int height)
|
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 topLeftLineColor
private ColorProvider bottomRightLineColor
private ColorProvider highlightColorProvider
private int tabLeftInset
Constructor Detail |
---|
public OpenContentBorder(java.awt.Color color, int tabLeftInset)
color
- the line colortabLeftInset
- the left border inset of the tabpublic OpenContentBorder()
public OpenContentBorder(java.awt.Color color)
color
- the line colorpublic OpenContentBorder(java.awt.Color color, java.awt.Color highlightColor)
color
- the line colorhighlightColor
- the highlight colorpublic OpenContentBorder(ColorProvider lineColor, ColorProvider highlightColorProvider, int tabLeftInset)
lineColor
- the line color providerhighlightColorProvider
- the highlight color providertabLeftInset
- the left border inset of the tabpublic OpenContentBorder(ColorProvider topLeftLineColor, ColorProvider bottomRightLineColor, ColorProvider highlightColorProvider, int tabLeftInset)
topLeftLineColor
- the line color provider for the top and left linesbottomRightLineColor
- the line color provider for the bottom and right lineshighlightColorProvider
- the highlight color providertabLeftInset
- the left border inset of the tabMethod Detail |
---|
private static int getLineIntersection(int edge, float x1, float y1, float x2, float y2, Direction orientation)
private static java.awt.Point getTabBounds(java.awt.Component c, Tab tab, Direction orientation, int x, int y, int width, int height)
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
private static void drawLine(java.awt.Graphics graphics, int x1, int y1, int x2, int y2)
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 |