JavaTM Platform
Standard Ed. 6

javax.swing.plaf.metal
类 MetalBorders.Flush3DBorder

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

public static class MetalBorders.Flush3DBorder
     
extends AbstractBorder
implements UIResource


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

构造方法详细信息

MetalBorders.Flush3DBorder

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

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 对象

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets newInsets)
从类 AbstractBorder 复制的描述
用此边框的当前 Insets 重新初始化 insets 参数。

覆盖:
AbstractBorder 中的 getBorderInsets
参数:
c - 应用此边框 insets 值的组件
newInsets - 要重新初始化的对象
返回:
insets 对象

JavaTM Platform
Standard Ed. 6

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

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