|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.plaf.metal.MetalBorders.MenuBarBorder
public static class MetalBorders.MenuBarBorder
A border used for JMenuBar
components.
Field Summary | |
---|---|
protected static Insets |
borderInsets
The border insets. |
Constructor Summary | |
---|---|
MetalBorders.MenuBarBorder()
Creates a new border instance. |
Method Summary | |
---|---|
Insets |
getBorderInsets(Component c)
Returns the border insets. |
Insets |
getBorderInsets(Component c,
Insets insets)
Populates insets with the border insets, then returns it. |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the border for the component. |
Methods inherited from class javax.swing.border.AbstractBorder |
---|
getInteriorRectangle, getInteriorRectangle, isBorderOpaque |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Insets borderInsets
Constructor Detail |
---|
public MetalBorders.MenuBarBorder()
Method Detail |
---|
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
JMenu
or an armed JMenuItem
.
paintBorder
in interface Border
paintBorder
in class AbstractBorder
c
- the component.g
- the graphics device.x
- the x-coordinate of the border area.y
- the y-coordinate of the border area.w
- the width of the border area.h
- the height of the border area.public Insets getBorderInsets(Component c)
getBorderInsets
in interface Border
getBorderInsets
in class AbstractBorder
c
- the component (ignored).
AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
public Insets getBorderInsets(Component c, Insets insets)
insets
with the border insets, then returns it.
getBorderInsets
in class AbstractBorder
c
- the component (ignored).insets
- the object to populate with the border insets.
NullPointerException
- if insets
is null
.AbstractBorder.getBorderInsets(Component)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |