public static class MetalBorders.MenuItemBorder extends AbstractBorder implements UIResource
| Modifier and Type | Field and Description |
|---|---|
protected static Insets |
borderInsets
The border insets.
|
| Constructor and Description |
|---|
MetalBorders.MenuItemBorder()
Creates a new border instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getInteriorRectangle, getInteriorRectangle, isBorderOpaqueprotected static Insets borderInsets
public MetalBorders.MenuItemBorder()
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
JMenu or an armed JMenuItem.paintBorder in interface BorderpaintBorder in class AbstractBorderc - 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 BordergetBorderInsets in class AbstractBorderc - 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 AbstractBorderc - the component (ignored).insets - the object to populate with the border insets.NullPointerException - if insets is null.AbstractBorder.getBorderInsets(Component)