|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
javax.swing.plaf.metal.OceanTheme
public class OceanTheme
MetalLookAndFeel 的預設主題。
Metal 外觀的設計人員盡量保持預設外觀的更新,在將來可能使用新的主題。所以,在希望定制 "Ocean" 外觀時,開發人員應該直接使用此類別,或強制使用它作為當前主題,不用顧及將來的更新。
OceanTheme 返回的所有顏色都是完全不透明的。
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)| 建構子摘要 | |
|---|---|
OceanTheme()
創建一個 OceanTheme 實例 |
|
| 方法摘要 | |
|---|---|
void |
addCustomEntriesToTable(UIDefaults table)
將此主題的自定義條目添加到預設表中。 |
protected ColorUIResource |
getBlack()
返回黑色。 |
ColorUIResource |
getControlTextColor()
返回控制元件文本顏色。 |
ColorUIResource |
getDesktopColor()
返回桌面顏色。 |
ColorUIResource |
getInactiveControlTextColor()
返回非活動控制元件文本顏色。 |
ColorUIResource |
getMenuDisabledForeground()
返回選單禁用前景色。 |
String |
getName()
返回此主題的名稱,即 "Ocean"。 |
protected ColorUIResource |
getPrimary1()
返回 primary 1 顏色。 |
protected ColorUIResource |
getPrimary2()
返回 primary 2 顏色。 |
protected ColorUIResource |
getPrimary3()
返回 primary 3 顏色。 |
protected ColorUIResource |
getSecondary1()
返回 secondary 1 顏色。 |
protected ColorUIResource |
getSecondary2()
返回 secondary 2 顏色。 |
protected ColorUIResource |
getSecondary3()
返回 secondary 3 顏色。 |
| 從類別 javax.swing.plaf.metal.DefaultMetalTheme 繼承的方法 |
|---|
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFont |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public OceanTheme()
OceanTheme 實例
| 方法詳細資訊 |
|---|
public void addCustomEntriesToTable(UIDefaults table)
MetalTheme 中的 addCustomEntriesToTabletable - 非 null 的預設表
NullPointerException - 如果 table 為 nullMetalLookAndFeel.getDefaults()public String getName()
DefaultMetalTheme 中的 getNameprotected ColorUIResource getPrimary1()
0x6382BF 的顏色。
DefaultMetalTheme 中的 getPrimary1Color.decode(java.lang.String)protected ColorUIResource getPrimary2()
0xA3B8CC 的顏色。
DefaultMetalTheme 中的 getPrimary2Color.decode(java.lang.String)protected ColorUIResource getPrimary3()
0xB8CFE5 的顏色。
DefaultMetalTheme 中的 getPrimary3Color.decode(java.lang.String)protected ColorUIResource getSecondary1()
0x7A8A99 的顏色。
DefaultMetalTheme 中的 getSecondary1Color.decode(java.lang.String)protected ColorUIResource getSecondary2()
0xB8CFE5 的顏色。
DefaultMetalTheme 中的 getSecondary2Color.decode(java.lang.String)protected ColorUIResource getSecondary3()
0xEEEEEE 的顏色。
DefaultMetalTheme 中的 getSecondary3Color.decode(java.lang.String)protected ColorUIResource getBlack()
0x333333 的顏色。
MetalTheme 中的 getBlackColor.decode(java.lang.String)public ColorUIResource getDesktopColor()
0xFFFFFF 的顏色。
MetalTheme 中的 getDesktopColorColor.decode(java.lang.String)public ColorUIResource getInactiveControlTextColor()
0x999999 的顏色。
MetalTheme 中的 getInactiveControlTextColorpublic ColorUIResource getControlTextColor()
0x333333 的顏色。
MetalTheme 中的 getControlTextColorpublic ColorUIResource getMenuDisabledForeground()
0x999999 的顏色。
MetalTheme 中的 getMenuDisabledForeground
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。