java.lang.Objectjava.awt.Insets
public class Insets
Insets 对象是容器边界的表示形式。它指定容器必须在其各个边缘留出的空间。这个空间可以是边界、空白空间或标题。
LayoutManager,
Container,
序列化表格
| 字段摘要 | |
|---|---|
int |
bottom 底部的 inset。 |
int |
left 左边的 inset。 |
int |
right 右边的 inset。 |
int |
top 顶部的 inset。 |
| 构造方法摘要 | |
|---|---|
Insets(int top, int left, int bottom, int right) 创建并初始化具有指定顶部、左边、底部、右边 inset 的新 Insets 对象。 |
|
| 方法摘要 | |
|---|---|
Object |
clone() 创建此对象的副本。 |
boolean |
equals(Object obj) 检查两个 insets 对象是否等价。 |
int |
hashCode() 返回此 Insets 的哈希码。 |
void |
set(int top, int left, int bottom, int right) 将顶部、底部、左边和右边设置为指定值 |
String |
toString() 返回此 Insets 对象的字符串表示形式。 |
| 从类 java.lang.Object 继承的方法 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
public int top
clone()
public int left
clone()
public int bottom
clone()
public int right
clone()
| 构造方法详细信息 |
|---|
public Insets(int top,
int left,
int bottom,
int right)
Insets 对象。
top - 顶部的 inset。
left - 左边的 inset。
bottom - 底部的 inset。
right - 右边的 inset。
| 方法详细信息 |
|---|
public void set(int top,
int left,
int bottom,
int right)
top - 顶部的 inset。
left - 左边的 inset。
bottom - 底部的 inset。
right - 右边的 inset。
public boolean equals(Object obj)
Insets 实例的字段
top、
left、
bottom 和
right 四个整数值都相等,则它们是等价的。
obj - 要与之比较的引用对象。
true;否则返回
false。
Object.hashCode(),
Hashtable
public int hashCode()
Object.equals(java.lang.Object),
Hashtable
public String toString()
Insets 对象的字符串表示形式。此方法仅在进行调试的时候使用,对于不同的实现,返回的字符串的内容和格式可能有所不同。返回的字符串可能为空,但不可能为
null。
Insets 对象的字符串表示。
public Object clone()