java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.ButtonBorder
javax.swing.plaf.basic.BasicBorders.RolloverButtonBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- Enclosing class:
- BasicBorders
- public static class BasicBorders.RolloverButtonBorder
- extends BasicBorders.ButtonBorder
A one-pixel thick border for rollover buttons, for example in
tool bars.
- Since:
- 1.4
|
Field Summary |
(package private) static long |
serialVersionUID
Determined using the serialver tool
of Sun JDK 1.4.1_01 on GNU/Linux 2.4.20 for x86. |
| 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 Sun JDK 1.4.1_01 on GNU/Linux 2.4.20 for x86.
- See Also:
- Constant Field Values
BasicBorders.RolloverButtonBorder
public BasicBorders.RolloverButtonBorder(java.awt.Color shadow,
java.awt.Color darkShadow,
java.awt.Color highlight,
java.awt.Color lightHighlight)
- Constructs a new border for drawing a roll-over button
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 border around a rollover button. If
c
is not an javax.swing.AbstractButton whose model
returns true for ButtonModel.isRollover()>ButtonModel.isRollover() 55 , nothing gets painted at
all.
- Specified by:
paintBorder in interface javax.swing.border.Border- Overrides:
paintBorder in class BasicBorders.ButtonBorder