javax.swing.plaf.metal
public static class MetalBorders.ToggleButtonBorder extends MetalBorders.ButtonBorder
JToggleButton
component.borderInsets
Constructor and Description |
---|
MetalBorders.ToggleButtonBorder()
Creates a new border instance.
|
Modifier and Type | Method and Description |
---|---|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the toggle button border.
|
getBorderInsets, getBorderInsets
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
public MetalBorders.ToggleButtonBorder()
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
paintBorder
in interface Border
paintBorder
in class MetalBorders.ButtonBorder
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