- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.plaf.metal.MetalBorders.TableHeaderBorder
-
- All Implemented Interfaces:
-
Serializable,Border
- Enclosing class:
- MetalBorders
public static class MetalBorders.TableHeaderBorder extends AbstractBorder
表头的边框- 从以下版本开始:
- 1.3
- 另请参见:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field 描述 protected InsetseditorBorderInsets边界插入。
-
构造方法摘要
构造方法 Constructor 描述 TableHeaderBorder()
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 InsetsgetBorderInsets(Component c, Insets insets)使用此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
-
-
-
-
字段详细信息
-
editorBorderInsets
protected Insets editorBorderInsets
边界插入。
-
-
方法详细信息
-
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 insets)
说明从类别复制:AbstractBorder使用此Border的当前Insets重新初始化insets参数。- 重写:
-
getBorderInsets在AbstractBorder - 参数
-
c- 应用此边界插入值的组件 -
insets- 要重新初始化的对象 - 结果
-
the
insetsobject
-
-