java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EtchedBorder
javax.swing.plaf.BorderUIResource.EtchedBorderUIResource
- All Implemented Interfaces:
Serializable
,Border
,UIResource
- Enclosing class:
BorderUIResource
public static class BorderUIResource.EtchedBorderUIResource
extends EtchedBorder
implements UIResource
An etched border UI resource.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs anEtchedBorderUIResource
.EtchedBorderUIResource
(int etchType) Constructs anEtchedBorderUIResource
.EtchedBorderUIResource
(int etchType, Color highlight, Color shadow) Constructs anEtchedBorderUIResource
.EtchedBorderUIResource
(Color highlight, Color shadow) Constructs anEtchedBorderUIResource
. -
Method Summary
Methods declared in class javax.swing.border.EtchedBorder
getBorderInsets, getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque, paintBorder
Methods declared in class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Constructor Details
-
EtchedBorderUIResource
public EtchedBorderUIResource()Constructs anEtchedBorderUIResource
. -
EtchedBorderUIResource
public EtchedBorderUIResource(int etchType) Constructs anEtchedBorderUIResource
.- Parameters:
etchType
- the type of etch to be drawn by the border
-
EtchedBorderUIResource
Constructs anEtchedBorderUIResource
.- Parameters:
highlight
- the color to use for the etched highlightshadow
- the color to use for the etched shadow
-
EtchedBorderUIResource
@ConstructorProperties({"etchType","highlightColor","shadowColor"}) public EtchedBorderUIResource(int etchType, Color highlight, Color shadow) Constructs anEtchedBorderUIResource
.- Parameters:
etchType
- the type of etch to be drawn by the borderhighlight
- the color to use for the etched highlightshadow
- the color to use for the etched shadow
-