javax.swing.plaf.metal
Class MetalBorders.ScrollPaneBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by 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

Constructor Summary
MetalBorders.ScrollPaneBorder()
          Constructs a new ScrollPaneBorder.
 
Method Summary
 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.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalBorders.ScrollPaneBorder

public MetalBorders.ScrollPaneBorder()
Constructs a new ScrollPaneBorder.

Method Detail

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 painted
g - the Graphics context
x - the X coordinate of the upper left corner of the border
y - the Y coordinate of the upper left corner of the border
w - the width of the border
h - the height of the border