|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.border.AbstractBorder
javax.swing.border.BevelBorder
javax.swing.border.SoftBevelBorder
public class SoftBevelBorder
實作某種斜面的類別,這種斜面要麼凸出要麼凹入且拐角圓滑。
警告:此類別的已序列化物件與以後的 Swing 版本不相容。當前序列化支持適用於短期存儲,或適用於在運行相同 Swing 版本的應用程序之間進行 RMI(Remote Method Invocation,遠端方法調用)。從 1.4 版本開始,已在 java.beans 套件中添加了支持所有 JavaBeansTM 長期存儲的功能。請參見 XMLEncoder。
| 欄位摘要 |
|---|
| 從類別 javax.swing.border.BevelBorder 繼承的欄位 |
|---|
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter |
| 建構子摘要 | |
|---|---|
SoftBevelBorder(int bevelType)
創建具有用指定型別的斜面邊框,其顏色將從傳遞給 paintBorder 方法的元件背景色派生。 |
|
SoftBevelBorder(int bevelType,
Color highlight,
Color shadow)
創建具有指定型別、高亮顯示和陰影顏色的斜面邊框。 |
|
SoftBevelBorder(int bevelType,
Color highlightOuterColor,
Color highlightInnerColor,
Color shadowOuterColor,
Color shadowInnerColor)
創建具有指定型別、高亮顯示和陰影顏色的斜面邊框。 |
|
| 方法摘要 | |
|---|---|
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 |
| 建構子詳細資訊 |
|---|
public SoftBevelBorder(int bevelType)
bevelType - 邊框斜面型別
public SoftBevelBorder(int bevelType,
Color highlight,
Color shadow)
bevelType - 邊框的斜面型別highlight - 斜面高亮顯示所用顏色shadow - 斜面陰影所用顏色
public SoftBevelBorder(int bevelType,
Color highlightOuterColor,
Color highlightInnerColor,
Color shadowOuterColor,
Color shadowInnerColor)
bevelType - 邊框的斜面型別highlightOuterColor - 斜面外部高亮顯示所用顏色highlightInnerColor - 斜面內部高亮顯示所用顏色shadowOuterColor - 斜面外部陰影所用顏色shadowInnerColor - 斜面內部陰影所用顏色| 方法詳細資訊 |
|---|
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
Border 中的 paintBorderBevelBorder 中的 paintBorderc - 要為其繪製邊框的元件g - 繪製的圖形x - 所繪製邊框的 x 坐標位置y - 所繪製邊框的 y 坐標位置width - 所繪製邊框的寬度height - 所繪製邊框的高度public Insets getBorderInsets(Component c)
Border 中的 getBorderInsetsBevelBorder 中的 getBorderInsetsc - 要應用此邊框 insets 值的元件
Insets 物件
public Insets getBorderInsets(Component c,
Insets insets)
BevelBorder 中的 getBorderInsetsc - 應用此邊框 insets 值的元件insets - 要重新初始化的物件
insets 物件public boolean isBorderOpaque()
Border 中的 isBorderOpaqueBevelBorder 中的 isBorderOpaque
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。