java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.BevelBorder
javax.swing.plaf.BorderUIResource.BevelBorderUIResource
- 所有已实现的接口:
-
Serializable
,Border
,UIResource
- 封装类:
-
BorderUIResource
public static class BorderUIResource.BevelBorderUIResource extends BevelBorder implements UIResource
一个斜角边框UI资源。
-
Field Summary
Fields declared in class javax.swing.border.BevelBorder
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter
-
Constructor Summary
ConstructorDescriptionBevelBorderUIResource
(int bevelType) 构造一个BevelBorderUIResource
。BevelBorderUIResource
(int bevelType, Color highlight, Color shadow) 构造一个BevelBorderUIResource
。BevelBorderUIResource
(int bevelType, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) 构造一个BevelBorderUIResource
。 -
Method Summary
Methods declared in class javax.swing.border.BevelBorder
getBevelType, getBorderInsets, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque, paintBorder, paintLoweredBevel, paintRaisedBevel
Methods declared in class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Constructor Details
-
BevelBorderUIResource
public BevelBorderUIResource(int bevelType) 构造一个BevelBorderUIResource
。- 参数:
-
bevelType
- 边框的斜角类型
-
BevelBorderUIResource
构造一个BevelBorderUIResource
。斜角外部高亮颜色和斜角内部高亮颜色将从指定的高亮颜色派生,斜角外部阴影颜色和斜角内部阴影颜色将从指定的阴影颜色派生。- 参数:
-
bevelType
- 边框的斜角类型 -
highlight
- 用于斜角高亮的颜色 -
shadow
- 用于斜角阴影的颜色
-
BevelBorderUIResource
@ConstructorProperties({"bevelType","highlightOuterColor","highlightInnerColor","shadowOuterColor","shadowInnerColor"}) public BevelBorderUIResource(int bevelType, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) 构造一个BevelBorderUIResource
。- 参数:
-
bevelType
- 边框的斜角类型 -
highlightOuter
- 用于斜角外部高亮的颜色 -
highlightInner
- 用于斜角内部高亮的颜色 -
shadowOuter
- 用于斜角外部阴影的颜色 -
shadowInner
- 用于斜角内部阴影的颜色
-