javax.swing.plaf.metal
Class MetalBorders.ToggleButtonBorder

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

public static class MetalBorders.ToggleButtonBorder
extends MetalBorders.ButtonBorder

A border used for the JToggleButton component.

Since:
1.3
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalBorders.ButtonBorder
borderInsets
 
Constructor Summary
MetalBorders.ToggleButtonBorder()
          Creates a new border instance.
 
Method Summary
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          Paints the toggle button 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.ToggleButtonBorder

public MetalBorders.ToggleButtonBorder()
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 toggle button border.

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class MetalBorders.ButtonBorder
Parameters:
c - the component for which we paint the border
g - the Graphics context to use
x - the X coordinate of the upper left corner of c
y - the Y coordinate of the upper left corner of c
w - the width of c
h - the height of c