java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
javax.swing.plaf.BorderUIResource.TitledBorderUIResource
- 所有实现的接口:
-
Serializable
,Border
,UIResource
- 封装类:
-
BorderUIResource
public static class BorderUIResource.TitledBorderUIResource extends TitledBorder implements UIResource
一个带标题的边框UI资源。
-
Field Summary
Fields declared in class javax.swing.border.TitledBorder
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING
-
Constructor Summary
ConstructorDescriptionTitledBorderUIResource
(String title) 构造一个TitledBorderUIResource
。TitledBorderUIResource
(Border border) 构造一个TitledBorderUIResource
。TitledBorderUIResource
(Border border, String title) 构造一个TitledBorderUIResource
。TitledBorderUIResource
(Border border, String title, int titleJustification, int titlePosition) 构造一个TitledBorderUIResource
。TitledBorderUIResource
(Border border, String title, int titleJustification, int titlePosition, Font titleFont) 构造一个TitledBorderUIResource
。TitledBorderUIResource
(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) 构造一个TitledBorderUIResource
。 -
Method Summary
Methods declared in class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
Methods declared in class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Constructor Details
-
TitledBorderUIResource
构造一个TitledBorderUIResource
。- 参数:
-
title
- 边框应显示的标题
-
TitledBorderUIResource
构造一个TitledBorderUIResource
。- 参数:
-
border
- 边框
-
TitledBorderUIResource
构造一个TitledBorderUIResource
。- 参数:
-
border
- 边框 -
title
- 边框应显示的标题
-
TitledBorderUIResource
public TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition) 构造一个TitledBorderUIResource
。- 参数:
-
border
- 边框 -
title
- 边框应显示的标题 -
titleJustification
- 标题的对齐方式 -
titlePosition
- 标题的位置
-
TitledBorderUIResource
public TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont) 构造一个TitledBorderUIResource
。- 参数:
-
border
- 边框 -
title
- 边框应显示的标题 -
titleJustification
- 标题的对齐方式 -
titlePosition
- 标题的位置 -
titleFont
- 渲染标题的字体
-
TitledBorderUIResource
@ConstructorProperties({"border","title","titleJustification","titlePosition","titleFont","titleColor"}) public TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) 构造一个TitledBorderUIResource
。- 参数:
-
border
- 边框 -
title
- 边框应显示的标题 -
titleJustification
- 标题的对齐方式 -
titlePosition
- 标题的位置 -
titleFont
- 渲染标题的字体 -
titleColor
- 标题的颜色
-