javax.swing.plaf.metal
public static class MetalBorders.MenuItemBorder extends AbstractBorder implements UIResource
Field Summary | |
---|---|
protected static Insets | borderInsets The border insets. |
Constructor Summary | |
---|---|
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. |
Parameters: c the component (ignored).
Returns: The border insets.
insets
with the border insets, then returns it.
Parameters: c the component (ignored). insets the object to populate with the border insets.
Returns: The border insets.
Throws: NullPointerException if insets
is null
.
Parameters: 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.