javax.swing.plaf.metal
Class MetalBorders.ToggleButtonBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.metal.MetalBorders.ButtonBorder
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalBorders.ToggleButtonBorder
public MetalBorders.ToggleButtonBorder()
- Creates a new border instance.
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 borderg - the Graphics context to usex - the X coordinate of the upper left corner of cy - the Y coordinate of the upper left corner of cw - the width of ch - the height of c