public static class MetalBorders.ScrollPaneBorder extends javax.swing.border.AbstractBorder implements javax.swing.plaf.UIResource
JScrollPane components.| Constructor and Description |
|---|
MetalBorders.ScrollPaneBorder()
Constructs a new ScrollPaneBorder.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the insets of the border for the Component
c. |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Paints the border.
|
public MetalBorders.ScrollPaneBorder()
public java.awt.Insets getBorderInsets(java.awt.Component c)
c.getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.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(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.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