java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.ButtonBorder
javax.swing.plaf.basic.BasicBorders.ToggleButtonBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- Enclosing class:
- BasicBorders
- public static class BasicBorders.ToggleButtonBorder
- extends BasicBorders.ButtonBorder
A border for toggle buttons in the Basic look and feel.
The Sun implementation always seems to draw exactly
the same border, irrespective of the state of the button.
This is rather surprising, but GNU Classpath emulates the
observable behavior.
|
Field Summary |
(package private) static long |
serialVersionUID
Determined using the serialver tool
of Apple/Sun JDK 1.3.1 on MacOS X 10.1.5. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- Determined using the
serialver tool
of Apple/Sun JDK 1.3.1 on MacOS X 10.1.5.
- See Also:
- Constant Field Values
BasicBorders.ToggleButtonBorder
public BasicBorders.ToggleButtonBorder(java.awt.Color shadow,
java.awt.Color darkShadow,
java.awt.Color highlight,
java.awt.Color lightHighlight)
- Constructs a new border for drawing a JToggleButton in
the Basic look and feel.
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Paints the ToggleButtonBorder around a given component.
The Sun implementation always seems to draw exactly
the same border, irrespective of the state of the button.
This is rather surprising, but GNU Classpath emulates the
observable behavior.
- Specified by:
paintBorder in interface javax.swing.border.Border- Overrides:
paintBorder in class BasicBorders.ButtonBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Measures the width of this border.
- Specified by:
getBorderInsets in interface javax.swing.border.Border- Overrides:
getBorderInsets in class BasicBorders.ButtonBorder
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c,
java.awt.Insets insets)
- Measures the width of this border, storing the results into a
pre-existing Insets object.
- Overrides:
getBorderInsets in class BasicBorders.ButtonBorder