|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
public class EmptyBorder
该类提供了一个占用空间但不执行绘制的空透明边框。
警告:此类已序列化的对象将不再与以后的 Swing 版本兼容。当前的序列化支持适合于在运行相同 Swing 版本的应用程序之间短期存储或 RMI。从 1.4 版开始,已在 java.beans 包中加入对所有 JavaBeansTM 的长期存储支持。请参见 XMLEncoder。
| 字段摘要 | |
|---|---|
protected int |
bottom |
protected int |
left |
protected int |
right |
protected int |
top |
| 构造方法摘要 | |
|---|---|
EmptyBorder(Insets borderInsets) 创建具有指定 insets 的空边框 |
|
EmptyBorder(int top, int left, int bottom, int right) 创建具有指定 insets 的空边框 |
|
| 方法摘要 | |
|---|---|
Insets |
getBorderInsets() 返回此边框的 insets。 |
Insets |
getBorderInsets(Component c) 返回此边框的 insets |
Insets |
getBorderInsets(Component c, Insets insets) 用此边框的当前 Insets 重新初始化 insets 参数 |
boolean |
isBorderOpaque() 返回此边框是否透明。 |
void |
paintBorder(Component c, Graphics g, int x, int y, int width, int height) 默认情况下不执行绘制。 |
| 从类 javax.swing.border.AbstractBorder 继承的方法 |
|---|
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
protected int left
protected int right
protected int top
protected int bottom
| 构造方法详细信息 |
|---|
public EmptyBorder(int top,
int left,
int bottom,
int right)
top - 边框顶部 inset
left - 边框左部 inset
bottom - 边框底部 inset
right - 边框右部 inset
public EmptyBorder(Insets borderInsets)
borderInsets - 边框的 insets
| 方法详细信息 |
|---|
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Border 中的
paintBorder
AbstractBorder 中的
paintBorder
c - 要为其绘制边框的组件
g - 绘制的图形
x - 所绘制边框的 x 坐标位置
y - 所绘制边框的 y 坐标位置
width - 所绘制边框的宽度
height - 所绘制边框的高度
public Insets getBorderInsets(Component c)
Border 中的
getBorderInsets
AbstractBorder 中的
getBorderInsets
c - 应用此边框 insets 值的组件
Insets 对象
public Insets getBorderInsets(Component c,
Insets insets)
AbstractBorder 中的
getBorderInsets
c - 应用此边框 insets 值的组件
insets - 要重新初始化的对象
insets 对象
public Insets getBorderInsets()
public boolean isBorderOpaque()
Border 中的
isBorderOpaque
AbstractBorder 中的
isBorderOpaque
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。