JavaTM Platform
Standard Ed. 6

javax.swing.plaf.metal
类 MetalBorders.TableHeaderBorder

java.lang.Object
  继承者 javax.swing.border.AbstractBorder
      继承者 javax.swing.plaf.metal.MetalBorders.TableHeaderBorder
所有已实现的接口:
Serializable, Border
正在封闭类:
MetalBorders

public static class MetalBorders.TableHeaderBorder
extends AbstractBorder

Table Header 的边框

从以下版本开始:
1.3

字段摘要
protected  Insets editorBorderInsets
           
 
构造方法摘要
MetalBorders.TableHeaderBorder()
           
 
方法摘要
 Insets getBorderInsets(Component c)
          此默认实现返回一个新的 Insets 实例,其中 topleftbottomright 字段都设置成了 0
 void paintBorder(Component c, Graphics g, int x, int y, int w, int h)
          此默认实现不执行绘制操作。
 
从类 javax.swing.border.AbstractBorder 继承的方法
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

editorBorderInsets

protected Insets editorBorderInsets
构造方法详细信息

MetalBorders.TableHeaderBorder

public MetalBorders.TableHeaderBorder()
方法详细信息

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int w,
                        int h)
从类 AbstractBorder 复制的描述
此默认实现不执行绘制操作。

指定者:
接口 Border 中的 paintBorder
覆盖:
AbstractBorder 中的 paintBorder
参数:
c - 要为其绘制边框的组件
g - 绘制的图形
x - 所绘制边框的 x 坐标位置
y - 所绘制边框的 y 坐标位置
w - 所绘制边框的宽度
h - 所绘制边框的高度

getBorderInsets

public Insets getBorderInsets(Component c)
从类 AbstractBorder 复制的描述
此默认实现返回一个新的 Insets 实例,其中 topleftbottomright 字段都设置成了 0

指定者:
接口 Border 中的 getBorderInsets
覆盖:
AbstractBorder 中的 getBorderInsets
参数:
c - 应用此边框 insets 值的组件
返回:
已初始化为 0 的新 Insets 对象

JavaTM Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策