- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.plaf.metal.MetalBorders.OptionDialogBorder
-
- All Implemented Interfaces:
-
Serializable,Border,UIResource
- Enclosing class:
- MetalBorders
public static class MetalBorders.OptionDialogBorder extends AbstractBorder implements UIResource
该类表示选项对话框的边框。- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 OptionDialogBorder()
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 InsetsgetBorderInsets(Component c, Insets newInsets)使用此Border的当前Insets重新初始化insets参数。voidpaintBorder(Component c, Graphics g, int x, int y, int w, int h)此默认实现不绘画。-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
-
-
-
-
方法详细信息
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
描述从类复制:AbstractBorder此默认实现不绘画。- Specified by:
-
paintBorder在接口Border - 重写:
-
paintBorder在AbstractBorder - 参数
-
c- 正在绘制此边框的组件 -
g- 油漆图形 -
x- 绘画边框的x位置 -
y- 绘画边框的y位置 -
w- 绘画边框的宽度 -
h- 绘画边框的高度
-
getBorderInsets
public Insets getBorderInsets(Component c, Insets newInsets)
描述从类复制:AbstractBorder使用此Border的当前Insets重新初始化insets参数。- 重写:
-
getBorderInsets在AbstractBorder - 参数
-
c- 此边框插入值的组件适用 -
newInsets- 要重新初始化的对象 - 结果
-
insets对象
-
-