javax.swing.plaf.metal
类 MetalBorders.MenuItemBorder
java.lang.Object
  
javax.swing.border.AbstractBorder
      
javax.swing.plaf.metal.MetalBorders.MenuItemBorder
- 所有已实现的接口: 
 - Serializable, Border, UIResource
 
- 正在封闭类:
 - MetalBorders
 
public static class MetalBorders.MenuItemBorder
- extends AbstractBorder
- implements UIResource
  
 
 
 
 
| 从类 java.lang.Object 继承的方法 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
borderInsets
protected static Insets borderInsets
MetalBorders.MenuItemBorder
public MetalBorders.MenuItemBorder()
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 实例,其中 top、left、bottom 和 right 字段都设置成了 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 对象
 
 
提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。 版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。