|
|||||||||
| 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.ButtonBorder
public static class MetalBorders.ButtonBorder
A border used for JButton components.
This Border implementation can handle only instances of
AbstractButton and their subclasses.
If the Metal Look and Feel's current theme is 'Ocean' the border
will be painted with a special highlight when the mouse cursor if
over the button (ie. the property rollover of the
button's model is true) and is not a direct
child of a JToolBar.
| Field Summary | |
|---|---|
protected static Insets |
borderInsets
The borders insets. |
| Constructor Summary | |
|---|---|
MetalBorders.ButtonBorder()
Creates a new instance of ButtonBorder. |
|
| Method Summary | |
|---|---|
Insets |
getBorderInsets(Component c)
Returns the insets of the ButtonBorder. |
Insets |
getBorderInsets(Component c,
Insets newInsets)
Returns the insets of the ButtonBorder in the specified
newInsets object. |
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int h)
Paints the button border. |
| 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.ButtonBorder()
ButtonBorder.
| Method Detail |
|---|
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int w,
int 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 cpublic Insets getBorderInsets(Component c)
ButtonBorder.
getBorderInsets in interface BordergetBorderInsets in class AbstractBorderc - the component for which the border is used (ignored).
ButtonBorder.AbstractBorder.getBorderInsets(java.awt.Component, java.awt.Insets)
public Insets getBorderInsets(Component c,
Insets newInsets)
ButtonBorder in the specified
newInsets object.
getBorderInsets in class AbstractBorderc - the component for which the border is used (ignored).newInsets - the insets object where to put the values (
null not permitted).
newInsets reference.AbstractBorder.getBorderInsets(Component)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||