public class OceanTheme extends DefaultMetalTheme
MetalLookAndFeel 。
Metal Look and Feel的设计师力图保持默认的最新状态,可能通过未来使用新的主题。 因此,开发人员只有在希望自定义“海洋”外观时才直接使用此类,或者强制它成为当前的主题,无论将来的更新如何。
OceanTheme返回的所有颜色都是完全不透明的。
MetalLookAndFeel.setCurrentTheme(javax.swing.plaf.metal.MetalTheme)
| Constructor and Description |
|---|
OceanTheme()
创建一个
OceanTheme的实例
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomEntriesToTable(UIDefaults table)
将此主题的自定义条目添加到默认表。
|
protected ColorUIResource |
getBlack()
返回黑色。
|
ColorUIResource |
getControlTextColor()
返回控件文本颜色。
|
ColorUIResource |
getDesktopColor()
返回桌面颜色。
|
ColorUIResource |
getInactiveControlTextColor()
返回非活动控件文本颜色。
|
ColorUIResource |
getMenuDisabledForeground()
返回菜单禁用的前景色。
|
String |
getName()
返回这个主题的名称,“海洋”。
|
protected ColorUIResource |
getPrimary1()
返回主要1颜色。
|
protected ColorUIResource |
getPrimary2()
返回主2颜色。
|
protected ColorUIResource |
getPrimary3()
返回主3颜色。
|
protected ColorUIResource |
getSecondary1()
返回辅助1颜色。
|
protected ColorUIResource |
getSecondary2()
返回辅助2颜色。
|
protected ColorUIResource |
getSecondary3()
返回辅助3颜色。
|
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFontgetAcceleratorForeground, getAcceleratorSelectedForeground, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getFocusColor, getHighlightedTextColor, getInactiveSystemTextColor, getMenuBackground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSystemTextColor, getTextHighlightColor, getUserTextColor, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForegroundpublic void addCustomEntriesToTable(UIDefaults table)
addCustomEntriesToTable在
MetalTheme
table - 默认表,非空
NullPointerException - 如果
table是
null
MetalLookAndFeel.getDefaults()
public String getName()
getName在
DefaultMetalTheme
protected ColorUIResource getPrimary1()
0x6382BF 。
getPrimary1在
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getPrimary2()
0xA3B8CC 。
getPrimary2在类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getPrimary3()
0xB8CFE5 。
getPrimary3在
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary1()
0x7A8A99 。
getSecondary1在
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary2()
0xB8CFE5 。
getSecondary2在
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary3()
0xEEEEEE 。
getSecondary3在
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getBlack()
0x333333 。
getBlack在
MetalTheme
Color.decode(java.lang.String)
public ColorUIResource getDesktopColor()
0xFFFFFF 。
getDesktopColor在
MetalTheme
Color.decode(java.lang.String)
public ColorUIResource getInactiveControlTextColor()
0x999999 。
getInactiveControlTextColor在
MetalTheme
public ColorUIResource getControlTextColor()
0x333333 。
getControlTextColor在
MetalTheme
public ColorUIResource getMenuDisabledForeground()
0x999999 。
getMenuDisabledForeground在
MetalTheme
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.