|
|||||||||
| 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.MenuItemBorder
public static class MetalBorders.MenuItemBorder
A border used for JMenu and JMenuItem components.
| Field Summary | |
|---|---|
protected static Insets |
borderInsets
The border insets. |
| Constructor Summary | |
|---|---|
MetalBorders.MenuItemBorder()
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.MenuItemBorder()
| 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 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||