|
|||||||||
| 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.PopupMenuBorder
public static class MetalBorders.PopupMenuBorder
A border implementation for popup menus.
| Field Summary | |
|---|---|
protected static Insets |
borderInsets
The border's insets. |
| Constructor Summary | |
|---|---|
MetalBorders.PopupMenuBorder()
Constructs a new PopupMenuBorder. |
|
| Method Summary | |
|---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the border, creating a new Insets instance with each call. |
Insets |
getBorderInsets(Component c,
Insets i)
Returns the insets of the border, using the supplied Insets instance. |
void |
paintBorder(Component c,
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. |
| 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.PopupMenuBorder()
| Method Detail |
|---|
public Insets getBorderInsets(Component c)
getBorderInsets in interface BordergetBorderInsets in class 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 Insets getBorderInsets(Component c,
Insets i)
getBorderInsets in class AbstractBorderc - the component for which we return the border insets
(not used here)i - the Insets instance to fill with the Insets values
insets argument).AbstractBorder.getBorderInsets(Component)
public void paintBorder(Component c,
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 BorderpaintBorder in class 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||