public static class BorderUIResource.BevelBorderUIResource extends javax.swing.border.BevelBorder implements UIResource, java.io.Serializable
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.| Constructor and Description |
|---|
BorderUIResource.BevelBorderUIResource(int bevelType)
Constructs a BevelBorderUIResource whose colors will be derived
from the background of the enclosed component.
|
BorderUIResource.BevelBorderUIResource(int bevelType,
java.awt.Color highlight,
java.awt.Color shadow)
Constructs a BevelBorderUIResource given its appearance type
and two colors for its highlight and shadow.
|
BorderUIResource.BevelBorderUIResource(int bevelType,
java.awt.Color highlightOuter,
java.awt.Color highlightInner,
java.awt.Color shadowOuter,
java.awt.Color shadowInner)
Constructs a BevelBorderUIResource given its appearance type
and all its colors.
|
getBevelType, getBorderInsets, getBorderInsets, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque, paintBorder, paintLoweredBevel, paintRaisedBevelpublic 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.java.lang.IllegalArgumentException - if bevelType has
an unsupported value.public BorderUIResource.BevelBorderUIResource(int bevelType, java.awt.Color highlight, java.awt.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.java.lang.IllegalArgumentException - if bevelType has
an unsupported value.java.lang.NullPointerException - if highlight or
shadow is null.public BorderUIResource.BevelBorderUIResource(int bevelType, java.awt.Color highlightOuter, java.awt.Color highlightInner, java.awt.Color shadowOuter, java.awt.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.java.lang.IllegalArgumentException - if bevelType has
an unsupported value.java.lang.NullPointerException - if one of the passed colors
is null.