public static class MetalBorders.PopupMenuBorder extends javax.swing.border.AbstractBorder implements javax.swing.plaf.UIResource
| Modifier and Type | Field and Description |
|---|---|
protected static java.awt.Insets |
borderInsets
The border's insets.
|
| Constructor and Description |
|---|
MetalBorders.PopupMenuBorder()
Constructs a new PopupMenuBorder.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorderInsets(java.awt.Component c)
Returns the insets of the border, creating a new Insets instance
with each call.
|
java.awt.Insets |
getBorderInsets(java.awt.Component c,
java.awt.Insets i)
Returns the insets of the border, using the supplied Insets instance.
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
Paints the border for component
c using the
Graphics context g with the dimension
x, y, w, h. |
protected static java.awt.Insets borderInsets
public MetalBorders.PopupMenuBorder()
public java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderc - the component for which we return the border insets
(not used here)left, right,
top and bottom fields indicate the
width of the border at the respective edge, which is zero
for the default implementation provided by AbstractButton.AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)public java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets i)
getBorderInsets in class javax.swing.border.AbstractBorderc - the component for which we return the border insets
(not used here)i - the Insets instance to fill with the Insets valuesinsets argument).AbstractBorder.getBorderInsets(Component)public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
c using the
Graphics context g with the dimension
x, y, w, h.paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderc - the component for which we paint the borderg - the Graphics context to usex - the X coordinate of the upper left corner of cy - the Y coordinate of the upper left corner of cw - the width of ch - the height of c