javax.swing.plaf.metal
Class MetalBorders.RolloverButtonBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.plaf.metal.MetalBorders.ButtonBorder
          extended by javax.swing.plaf.metal.MetalBorders.RolloverButtonBorder
All Implemented Interfaces:
Serializable, Border, UIResource
Enclosing class:
MetalBorders

public static class MetalBorders.RolloverButtonBorder
extends MetalBorders.ButtonBorder

A button border that is only visible when the mouse pointer is within the button's bounds.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalBorders.ButtonBorder
borderInsets
 
Constructor Summary
MetalBorders.RolloverButtonBorder()
          Creates a new border instance.
 
Method Summary
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          Paints the border.
 
Methods inherited from class javax.swing.plaf.metal.MetalBorders.ButtonBorder
getBorderInsets, getBorderInsets
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetalBorders.RolloverButtonBorder

public MetalBorders.RolloverButtonBorder()
Creates a new border instance.

Method Detail

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 MetalBorders.ButtonBorder
Parameters:
c - the component.
g - the graphics device.
x - the x-coordinate.
y - the y-coordinate.
w - the width.
h - the height.