public static class MetalBorders.Flush3DBorder extends AbstractBorder implements UIResource
| Constructor and Description |
|---|
MetalBorders.Flush3DBorder()
Creates a new border instance.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component c)
Returns the border insets.
|
Insets |
getBorderInsets(Component c,
Insets newInsets)
Returns the border insets.
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border for the specified component.
|
getInteriorRectangle, getInteriorRectangle, isBorderOpaquepublic MetalBorders.Flush3DBorder()
public Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the component (ignored).AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)public Insets getBorderInsets(Component c, Insets newInsets)
getBorderInsets in class AbstractBorderc - the component (ignored).newInsets - an existing insets instance, that will be populated
with the border insets and returned as the result
(null not permitted).newInsets reference.AbstractBorder.getBorderInsets(Component)public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
paintBorder in interface BorderpaintBorder in class AbstractBorderc - the component (ignored).g - the graphics device.x - the x-coordinate.y - the y-coordinate.w - the width.h - the height.