|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
javax.swing.plaf.metal.OceanTheme
public class OceanTheme
此类使用 MetalLookAndFeel 为应用程序提供更新外观。Metal 外观的设计人员可能通过使用将来的新主题来尽量保持默认外观的更新。所以,开发人员应该在希望自定义 "Ocean" 外观时直接使用此类,或强迫它使用当前主题即可,不用顾及将来的更新。
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)| 构造方法摘要 | |
|---|---|
OceanTheme()
构造一个 OceanTheme 实例 |
|
| 方法摘要 | |
|---|---|
void |
addCustomEntriesToTable(UIDefaults table)
将此主题的自定义条目添加到默认表中。 |
protected ColorUIResource |
getBlack()
返回 Metal 外观应该用作 "Black" 的颜色。 |
ColorUIResource |
getControlTextColor()
返回 Metal 外观应该用作控件默认颜色的颜色。 |
ColorUIResource |
getDesktopColor()
返回 Metal 外观应该用作桌面背景色的颜色。 |
ColorUIResource |
getInactiveControlTextColor()
返回 Metal 外观应该用作非活动控件的默认颜色的颜色。 |
ColorUIResource |
getMenuDisabledForeground()
返回 Metal 外观应该用作禁用菜单项的前景色的颜色。 |
String |
getName()
返回此主题的名称,即 "Ocean"。 |
protected ColorUIResource |
getPrimary1()
返回 Metal 外观应该用作 "Primary 1" 的颜色。 |
protected ColorUIResource |
getPrimary2()
返回 Metal 外观应该用作 "Primary 2" 的颜色。 |
protected ColorUIResource |
getPrimary3()
返回 Metal 外观应该用作 "Primary 3" 的颜色。 |
protected ColorUIResource |
getSecondary1()
返回 Metal 外观应该用作 "Secondary 1" 的颜色。 |
protected ColorUIResource |
getSecondary2()
返回 Metal 外观应该用作 "Secondary 2" 的颜色。 |
protected ColorUIResource |
getSecondary3()
返回 Metal 外观应该用作 "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 - 如果该参数为 nullpublic String getName()
DefaultMetalTheme 中的 getNameprotected ColorUIResource getPrimary1()
DefaultMetalTheme 中的 getPrimary1protected ColorUIResource getPrimary2()
DefaultMetalTheme 中的 getPrimary2protected ColorUIResource getPrimary3()
DefaultMetalTheme 中的 getPrimary3protected ColorUIResource getSecondary1()
DefaultMetalTheme 中的 getSecondary1protected ColorUIResource getSecondary2()
DefaultMetalTheme 中的 getSecondary2protected ColorUIResource getSecondary3()
DefaultMetalTheme 中的 getSecondary3protected ColorUIResource getBlack()
MetalTheme 中的 getBlackpublic ColorUIResource getDesktopColor()
MetalTheme 中的 getDesktopColorpublic ColorUIResource getInactiveControlTextColor()
MetalTheme 中的 getInactiveControlTextColorpublic ColorUIResource getControlTextColor()
MetalTheme 中的 getControlTextColorpublic ColorUIResource getMenuDisabledForeground()
MetalTheme 中的 getMenuDisabledForeground
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。