javax.swing.plaf.metal
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, isBorderOpaque
public MetalBorders.ScrollPaneBorder()
public Insets getBorderInsets(Component c)
c
.getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
c
- 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 Border
paintBorder
in class AbstractBorder
c
- 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