java.lang.Object
javax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
javax.swing.plaf.metal.OceanTheme
MetalLookAndFeel的默认主题。
Metal外观的设计人员努力保持默认外观的最新状态,可能会通过将来使用新主题来实现。因此,开发人员只有在希望自定义"Ocean"外观或强制将其设置为当前主题时才应直接使用此类。
OceanTheme返回的所有颜色都是完全不透明的。
- 自版本:
- 1.5
- 参见:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid将此主题的自定义条目添加到默认表中。protected ColorUIResourcegetBlack()返回黑色。返回控件文本颜色。返回桌面颜色。返回非活动控件文本颜色。返回菜单禁用前景色。getName()返回此主题的名称,"Ocean"。protected ColorUIResource返回主色1。protected ColorUIResource返回主色2。protected ColorUIResource返回主色3。protected ColorUIResource返回次要色1。protected ColorUIResource返回次要色2。protected ColorUIResource返回次要色3。Methods declared in class javax.swing.plaf.metal.DefaultMetalTheme
getControlTextFont, getMenuTextFont, getSubTextFont, getSystemTextFont, getUserTextFont, getWindowTitleFontMethods declared in class javax.swing.plaf.metal.MetalTheme
getAcceleratorForeground, 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, getWindowTitleInactiveForeground
-
Constructor Details
-
OceanTheme
public OceanTheme()创建一个OceanTheme的实例
-
-
Method Details
-
addCustomEntriesToTable
将此主题的自定义条目添加到默认表中。- 覆盖:
-
addCustomEntriesToTable在类MetalTheme中 - 参数:
-
table- 默认表,非空 - 抛出:
-
NullPointerException- 如果table为null - 参见:
-
getName
返回此主题的名称,"Ocean"。- 覆盖:
-
getName在类DefaultMetalTheme中 - 返回:
- "Ocean"
-
getPrimary1
返回主色1。这将返回一个RGB十六进制值为0x6382BF的颜色。- 覆盖:
-
getPrimary1在类DefaultMetalTheme中 - 返回:
- 主色1
- 参见:
-
getPrimary2
返回主色2。这将返回一个RGB十六进制值为0xA3B8CC的颜色。- 覆盖:
-
getPrimary2在类DefaultMetalTheme中 - 返回:
- 主色2
- 参见:
-
getPrimary3
返回主色3。这将返回一个RGB十六进制值为0xB8CFE5的颜色。- 覆盖:
-
getPrimary3在类DefaultMetalTheme中 - 返回:
- 主色3
- 参见:
-
getSecondary1
返回次要色1。这将返回一个RGB十六进制值为0x7A8A99的颜色。- 覆盖:
-
getSecondary1在类DefaultMetalTheme中 - 返回:
- 次要色1
- 参见:
-
getSecondary2
返回次要色2。这将返回一个RGB十六进制值为0xB8CFE5的颜色。- 覆盖:
-
getSecondary2在类DefaultMetalTheme中 - 返回:
- 次要色2
- 参见:
-
getSecondary3
返回次要色3。这将返回一个RGB十六进制值为0xEEEEEE的颜色。- 覆盖:
-
getSecondary3在类DefaultMetalTheme中 - 返回:
- 次要色3
- 参见:
-
getBlack
返回黑色。这将返回一个RGB十六进制值为0x333333的颜色。- 覆盖:
-
getBlack在类MetalTheme中 - 返回:
- 黑色
- 参见:
-
getDesktopColor
返回桌面颜色。这将返回一个RGB十六进制值为0xFFFFFF的颜色。- 覆盖:
-
getDesktopColor在类MetalTheme中 - 返回:
- 桌面颜色
- 参见:
-
getInactiveControlTextColor
返回非活动控件文本颜色。这将返回一个RGB十六进制值为0x999999的颜色。- 覆盖:
-
getInactiveControlTextColor在类MetalTheme中 - 返回:
- 非活动控件文本颜色
-
getControlTextColor
返回控件文本颜色。这将返回一个RGB十六进制值为0x333333的颜色。- 覆盖:
-
getControlTextColor在类MetalTheme中 - 返回:
- 控件文本颜色
-
getMenuDisabledForeground
返回菜单禁用前景色。这将返回一个RGB十六进制值为0x999999的颜色。- 覆盖:
-
getMenuDisabledForeground在类MetalTheme中 - 返回:
- 菜单禁用前景色
-