JavaTM 2 Platform
Standard Ed. 6

javax.swing.plaf
类 BorderUIResource

java.lang.Object
  继承者 javax.swing.plaf.BorderUIResource
所有已实现的接口:
Serializable, Border, UIResource

public class BorderUIResource
extends Object
implements Border, UIResource, Serializable


嵌套类摘要
static class BorderUIResource.BevelBorderUIResource
           
static class BorderUIResource.CompoundBorderUIResource
           
static class BorderUIResource.EmptyBorderUIResource
           
static class BorderUIResource.EtchedBorderUIResource
           
static class BorderUIResource.LineBorderUIResource
           
static class BorderUIResource.MatteBorderUIResource
           
static class BorderUIResource.TitledBorderUIResource
           
 
构造方法摘要
BorderUIResource(Border delegate)
          创建一个 UIResource 边框对象,该对象包装了一个现有 Border 实例。
 
方法摘要
static Border getBlackLineBorderUIResource()
           
 Insets getBorderInsets(Component c)
          返回该边框的 insets。
static Border getEtchedBorderUIResource()
           
static Border getLoweredBevelBorderUIResource()
           
static Border getRaisedBevelBorderUIResource()
           
 boolean isBorderOpaque()
          返回此边框是否透明。
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          按指定的位置和尺寸绘制指定组件的边框。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BorderUIResource

public BorderUIResource(Border delegate)
创建一个 UIResource 边框对象,该对象包装了一个现有 Border 实例。

参数:
delegate - 将被包装的边框
方法详细信息

getEtchedBorderUIResource

public static Border getEtchedBorderUIResource()

getLoweredBevelBorderUIResource

public static Border getLoweredBevelBorderUIResource()

getRaisedBevelBorderUIResource

public static Border getRaisedBevelBorderUIResource()

getBlackLineBorderUIResource

public static Border getBlackLineBorderUIResource()

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
从接口 Border 复制的描述
按指定的位置和尺寸绘制指定组件的边框。

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

getBorderInsets

public Insets getBorderInsets(Component c)
从接口 Border 复制的描述
返回该边框的 insets。

指定者:
接口 Border 中的 getBorderInsets
参数:
c - 要应用此边框 insets 值的组件

isBorderOpaque

public boolean isBorderOpaque()
从接口 Border 复制的描述
返回此边框是否透明。如果边框为不透明,则在绘制它时将用自身的背景来填充。

指定者:
接口 Border 中的 isBorderOpaque

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only