|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.border.MatteBorder
javax.swing.plaf.BorderUIResource.MatteBorderUIResource
public static class BorderUIResource.MatteBorderUIResource
A MatteBorder that also implements the
UIResource marker interface. This is useful for
implementing pluggable look-and-feels: When switching the current
LookAndFeel, only those borders are replaced that are marked as
UIResource. For this reason, a look-and-feel should
always install borders that implement UIResource,
such as the borders provided by this class.
![[An illustration of two MatteBorders]](../border/doc-files/MatteBorder-1.png)
| Field Summary |
|---|
| Fields inherited from class javax.swing.border.MatteBorder |
|---|
color, tileIcon |
| Fields inherited from class javax.swing.border.EmptyBorder |
|---|
bottom, left, right, top |
| Constructor Summary | |
|---|---|
BorderUIResource.MatteBorderUIResource(Icon tileIcon)
Constructs a MatteBorderUIResource given an icon for tiling the border area. |
|
BorderUIResource.MatteBorderUIResource(int top,
int left,
int bottom,
int right,
Color color)
Constructs a MatteBorderUIResource given the width on each side and a fill color. |
|
BorderUIResource.MatteBorderUIResource(int top,
int left,
int bottom,
int right,
Icon tileIcon)
Constructs a MatteBorderUIResource given the width on each side and an icon for tiling the border area. |
|
| Method Summary |
|---|
| Methods inherited from class javax.swing.border.MatteBorder |
|---|
getBorderInsets, getBorderInsets, getBorderInsets, getMatteColor, getTileIcon, isBorderOpaque, paintBorder |
| Methods inherited from class javax.swing.border.AbstractBorder |
|---|
getInteriorRectangle, getInteriorRectangle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BorderUIResource.MatteBorderUIResource(int top,
int left,
int bottom,
int right,
Color color)
![[A picture of a MatteBorder made by this
constructor]](../border/doc-files/MatteBorder-2.png)
top - the width of the border at its top edge.left - the width of the border at its left edge.bottom - the width of the border at its bottom edge.right - the width of the border at its right edge.color - the color for filling the border.
public BorderUIResource.MatteBorderUIResource(int top,
int left,
int bottom,
int right,
Icon tileIcon)
![[A picture of a MatteBorder made by this
constructor]](../border/doc-files/MatteBorder-4.png)
top - the width of the border at its top edge.left - the width of the border at its left edge.bottom - the width of the border at its bottom edge.right - the width of the border at its right edge.tileIcon - an icon for tiling the border area.public BorderUIResource.MatteBorderUIResource(Icon tileIcon)
![[A picture of a MatteBorder made by this
constructor]](../border/doc-files/MatteBorder-6.png)
tileIcon - an icon for tiling the border area.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||