|
|||||||||
| 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.BevelBorder
javax.swing.plaf.BorderUIResource.BevelBorderUIResource
public static class BorderUIResource.BevelBorderUIResource
A BevelBorder 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.
| Field Summary |
|---|
| Fields inherited from class javax.swing.border.BevelBorder |
|---|
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter |
| Constructor Summary | |
|---|---|
BorderUIResource.BevelBorderUIResource(int bevelType)
Constructs a BevelBorderUIResource whose colors will be derived from the background of the enclosed component. |
|
BorderUIResource.BevelBorderUIResource(int bevelType,
Color highlight,
Color shadow)
Constructs a BevelBorderUIResource given its appearance type and two colors for its highlight and shadow. |
|
BorderUIResource.BevelBorderUIResource(int bevelType,
Color highlightOuter,
Color highlightInner,
Color shadowOuter,
Color shadowInner)
Constructs a BevelBorderUIResource given its appearance type and all its colors. |
|
| Method Summary |
|---|
| Methods inherited from class javax.swing.border.BevelBorder |
|---|
getBevelType, getBorderInsets, getBorderInsets, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque, paintBorder, paintLoweredBevel, paintRaisedBevel |
| 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.BevelBorderUIResource(int bevelType)
![[An illustration showing raised and lowered BevelBorders]](../border/doc-files/BevelBorder-1.png)
bevelType - the desired appearance of the border. The value
must be either BevelBorder.RAISED
or BevelBorder.LOWERED.
IllegalArgumentException - if bevelType has
an unsupported value.
public BorderUIResource.BevelBorderUIResource(int bevelType,
Color highlight,
Color shadow)
![[An illustration showing BevelBorders that were
constructed with this method]](../border/doc-files/BevelBorder-2.png)
bevelType - the desired appearance of the border. The value
must be either BevelBorder.RAISED
or BevelBorder.LOWERED.highlight - the color that will be used for the inner side
of the highlighted edges (top and left if if
bevelType is BevelBorder.RAISED; bottom and right
otherwise). The color for the outer side is a brightened
version of this color.shadow - the color that will be used for the outer side of
the shadowed edges (bottom and right if
bevelType is BevelBorder.RAISED; top and left
otherwise). The color for the inner side is a brightened
version of this color.
IllegalArgumentException - if bevelType has
an unsupported value.
NullPointerException - if highlight or
shadow is null.
public BorderUIResource.BevelBorderUIResource(int bevelType,
Color highlightOuter,
Color highlightInner,
Color shadowOuter,
Color shadowInner)
![[An illustration showing BevelBorders that
were constructed with this method]](../border/doc-files/BevelBorder-3.png)
bevelType - the desired appearance of the border. The value
must be either BevelBorder.RAISED
or BevelBorder.LOWERED.highlightOuter - the color that will be used for the outer
side of the highlighted edges (top and left if
bevelType is BevelBorder.RAISED; bottom and right
otherwise).highlightInner - the color that will be used for the inner
side of the highlighted edges.shadowOuter - the color that will be used for the outer
side of the shadowed edges (bottom and right if
bevelType is BevelBorder.RAISED; top and left
otherwise).shadowInner - the color that will be used for the inner
side of the shadowed edges.
IllegalArgumentException - if bevelType has
an unsupported value.
NullPointerException - if one of the passed colors
is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||