- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.TitledBorder
-
- javax.swing.plaf.BorderUIResource.TitledBorderUIResource
-
- All Implemented Interfaces:
-
Serializable
,Border
,UIResource
- Enclosing class:
- BorderUIResource
public static class BorderUIResource.TitledBorderUIResource extends TitledBorder implements UIResource
标题边界UI资源。- 另请参见:
- Serialized Form
-
-
Field Summary
-
Fields inherited from 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 描述 TitledBorderUIResource(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
。
-
方法摘要
-
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
-
-
-
-
构造方法详细信息
-
TitledBorderUIResource
public TitledBorderUIResource(String title)
构造一个TitledBorderUIResource
。- 参数
-
title
- 边框应显示的标题
-
TitledBorderUIResource
public TitledBorderUIResource(Border border)
构造一个TitledBorderUIResource
。- 参数
-
border
- 边界
-
TitledBorderUIResource
public TitledBorderUIResource(Border border, String title)
构造一个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
- 标题的颜色
-
-