java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.plaf.basic.BasicBorders.MenuBarBorder
- All Implemented Interfaces:
- javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
- Enclosing class:
- BasicBorders
- public static class BasicBorders.MenuBarBorder
- extends javax.swing.border.AbstractBorder
- implements javax.swing.plaf.UIResource
A border for drawing a separator line below JMenuBar.
|
Field Summary |
private java.awt.Color |
highlight
The highlight color, which is used for the lower line of the
two-pixel thick bottom edge. |
(package private) static long |
serialVersionUID
Determined using the serialver tool
of Apple/Sun JDK 1.3.1 on MacOS X 10.1.5. |
private java.awt.Color |
shadow
The shadow color, which is used for the upper line of the
two-pixel thick bottom edge. |
| 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
shadow
private java.awt.Color shadow
- The shadow color, which is used for the upper line of the
two-pixel thick bottom edge.
highlight
private java.awt.Color highlight
- The highlight color, which is used for the lower line of the
two-pixel thick bottom edge.
BasicBorders.MenuBarBorder
public BasicBorders.MenuBarBorder(java.awt.Color shadow,
java.awt.Color highlight)
- Constructs a new MenuBarBorder for drawing a JMenuBar 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 MenuBarBorder around a given component.
- Specified by:
paintBorder in interface javax.swing.border.Border
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
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.