public class OceanTheme extends DefaultMetalTheme
MetalLookAndFeel默认主题。
设计师的金属外观和感觉努力保持默认的外观最新的,可能是通过使用新的主题在未来。因此,开发人员应该只使用这个类的时候,他们希望自定义“海洋”的外观,或迫使它成为当前的主题,无论未来的更新。
所有返回的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 -缺省值表,非空
null
table
NullPointerException
MetalLookAndFeel.getDefaults()
public String getName()
getName 方法重写,继承类
DefaultMetalTheme
protected ColorUIResource getPrimary1()
0x6382BF RGB颜色的十六进制值。
getPrimary1 方法重写,继承类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getPrimary2()
0xA3B8CC RGB颜色的十六进制值。
getPrimary2 方法重写,继承类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getPrimary3()
0xB8CFE5 RGB颜色的十六进制值。
getPrimary3 方法重写,继承类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary1()
0x7A8A99 RGB颜色的十六进制值。
getSecondary1 方法重写,继承类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary2()
0xB8CFE5 RGB颜色的十六进制值。
getSecondary2 方法重写,继承类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getSecondary3()
0xEEEEEE。
getSecondary3 方法重写,继承类
DefaultMetalTheme
Color.decode(java.lang.String)
protected ColorUIResource getBlack()
0x333333 RGB颜色的十六进制值。
getBlack 方法重写,继承类
MetalTheme
Color.decode(java.lang.String)
public ColorUIResource getDesktopColor()
0xFFFFFF RGB颜色的十六进制值。
getDesktopColor 方法重写,继承类
MetalTheme
Color.decode(java.lang.String)
public ColorUIResource getInactiveControlTextColor()
0x999999 RGB颜色的十六进制值。
getInactiveControlTextColor 方法重写,继承类
MetalTheme
public ColorUIResource getControlTextColor()
0x333333 RGB颜色的十六进制值。
getControlTextColor 方法重写,继承类
MetalTheme
public ColorUIResource getMenuDisabledForeground()
0x999999 RGB颜色的十六进制值。
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.