|
JavaTM 2 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 - 邊框頂部 insetleft - 邊框左部 insetbottom - 邊框底部 insetright - 邊框右部 insetpublic EmptyBorder(Insets borderInsets)
borderInsets - 邊框的 insets| 方法詳細資訊 |
|---|
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Border 中的 paintBorderAbstractBorder 中的 paintBorderc - 要為其繪製邊框的元件g - 繪製的圖形x - 所繪製邊框的 x 坐標位置y - 所繪製邊框的 y 坐標位置width - 所繪製邊框的寬度height - 所繪製邊框的高度public Insets getBorderInsets(Component c)
Border 中的 getBorderInsetsAbstractBorder 中的 getBorderInsetsc - 應用此邊框 insets 值的元件
Insets 物件
public Insets getBorderInsets(Component c,
Insets insets)
AbstractBorder 中的 getBorderInsetsc - 應用此邊框 insets 值的元件insets - 要重新初始化的物件
insets 物件public Insets getBorderInsets()
public boolean isBorderOpaque()
Border 中的 isBorderOpaqueAbstractBorder 中的 isBorderOpaque
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。