public static class MetalBorders.ScrollPaneBorder extends AbstractBorder implements UIResource
JScrollPane components.| Constructor and Description |
|---|
MetalBorders.ScrollPaneBorder()
Constructs a new ScrollPaneBorder.
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border for the Component
c. |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border.
|
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaquepublic MetalBorders.ScrollPaneBorder()
public Insets getBorderInsets(Component c)
c.getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the Component for which we return the border insetsleft, right,
top and bottom fields indicate the
width of the border at the respective edge, which is zero
for the default implementation provided by AbstractButton.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 BorderpaintBorder in class AbstractBorderc - the Component for which the border is paintedg - the Graphics contextx - the X coordinate of the upper left corner of the bordery - the Y coordinate of the upper left corner of the borderw - the width of the borderh - the height of the border