javax.swing.plaf.metal
Class MetalBorders.ScrollPaneBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.metal.MetalBorders.ScrollPaneBorder
- All Implemented Interfaces:
- Serializable, Border, UIResource
- Enclosing class:
- MetalBorders
public static class MetalBorders.ScrollPaneBorder
- extends AbstractBorder
- implements UIResource
A border for JScrollPane
components.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalBorders.ScrollPaneBorder
public MetalBorders.ScrollPaneBorder()
- Constructs a new ScrollPaneBorder.
getBorderInsets
public Insets getBorderInsets(Component c)
- Returns the insets of the border for the Component
c
.
- Specified by:
getBorderInsets
in interface Border
- Overrides:
getBorderInsets
in class AbstractBorder
- Parameters:
c
- the Component for which we return the border insets
- Returns:
- an Insets object whose
left
, 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. - See Also:
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
- Paints the border.
- Specified by:
paintBorder
in interface Border
- Overrides:
paintBorder
in class AbstractBorder
- Parameters:
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