public static class MetalBorders.TableHeaderBorder extends AbstractBorder
Modifier and Type | Field and Description |
---|---|
protected Insets |
editorBorderInsets
The insets of this border.
|
Constructor and Description |
---|
MetalBorders.TableHeaderBorder()
Creates a new instance of
TableHeaderBorder . |
Modifier and Type | Method and Description |
---|---|
Insets |
getBorderInsets(Component c)
Return the insets of this border.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border.
|
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
protected Insets editorBorderInsets
public MetalBorders.TableHeaderBorder()
TableHeaderBorder
.public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
c
- the component that the border applies to (ignored here,
subclasses may use it).AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
paintBorder
in interface Border
paintBorder
in class AbstractBorder
c
- the component for which to paint the borderg
- the graphics context to usex
- the x cooridinate of the border rectangley
- the y cooridinate of the border rectanglew
- the width of the border rectangleh
- the height of the border rectangle