|
JavaTM 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 Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。