|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
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 四個整數值都相等,則它們是等價的。
Object 中的 equalsobj - 要與之比較的參考物件。
true;否則返回 false。Object.hashCode(),
Hashtablepublic int hashCode()
Object 中的 hashCodeObject.equals(java.lang.Object),
Hashtablepublic String toString()
Insets 物件的字元串表示形式。此方法僅在進行除錯的時候使用,對於不同的實作,返回的字元串的內容和格式可能有所不同。返回的字元串可能為空,但不可能為 null。
Object 中的 toStringInsets 物件的字元串表示。public Object clone()
Object 中的 cloneInsets 物件的副本。Cloneable
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。