站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JavaTM 2 Platform Standard Edition 5.0 API 规范中文版

类 javax.swing.plaf.ColorUIResource 的使用 (Java 2 Platform SE 5.0) - JavaTM 2 Platform Standard Edition 5.0 API 规范中文版

JavaTM 2 Platform
Standard Ed. 5.0

类 javax.swing.plaf.ColorUIResource
的使用

使用 ColorUIResource 的软件包
javax.swing.plaf.metal 提供根据 Java 外观(曾经代称为 Metal)构建的用户界面对象,Java 外观是默认外观。 
 

javax.swing.plaf.metalColorUIResource 的使用
 

返回 ColorUIResourcejavax.swing.plaf.metal 中的方法
static ColorUIResource MetalLookAndFeel.getAcceleratorForeground()
           
 ColorUIResource MetalTheme.getAcceleratorForeground()
           
static ColorUIResource MetalLookAndFeel.getAcceleratorSelectedForeground()
           
 ColorUIResource MetalTheme.getAcceleratorSelectedForeground()
           
static ColorUIResource MetalLookAndFeel.getBlack()
           
protected  ColorUIResource MetalTheme.getBlack()
           
protected  ColorUIResource OceanTheme.getBlack()
          返回 Metal 外观应该用作 "Black" 的颜色。
static ColorUIResource MetalLookAndFeel.getControl()
           
 ColorUIResource MetalTheme.getControl()
           
static ColorUIResource MetalLookAndFeel.getControlDarkShadow()
           
 ColorUIResource MetalTheme.getControlDarkShadow()
           
static ColorUIResource MetalLookAndFeel.getControlDisabled()
           
 ColorUIResource MetalTheme.getControlDisabled()
           
static ColorUIResource MetalLookAndFeel.getControlHighlight()
           
 ColorUIResource MetalTheme.getControlHighlight()
           
static ColorUIResource MetalLookAndFeel.getControlInfo()
           
 ColorUIResource MetalTheme.getControlInfo()
           
static ColorUIResource MetalLookAndFeel.getControlShadow()
           
 ColorUIResource MetalTheme.getControlShadow()
           
static ColorUIResource MetalLookAndFeel.getControlTextColor()
           
 ColorUIResource MetalTheme.getControlTextColor()
           
 ColorUIResource OceanTheme.getControlTextColor()
          返回 Metal 外观应该用作控件默认颜色的颜色。
static ColorUIResource MetalLookAndFeel.getDesktopColor()
           
 ColorUIResource MetalTheme.getDesktopColor()
           
 ColorUIResource OceanTheme.getDesktopColor()
          返回 Metal 外观应该用作桌面背景色的颜色。
static ColorUIResource MetalLookAndFeel.getFocusColor()
           
 ColorUIResource MetalTheme.getFocusColor()
           
static ColorUIResource MetalLookAndFeel.getHighlightedTextColor()
           
 ColorUIResource MetalTheme.getHighlightedTextColor()
           
static ColorUIResource MetalLookAndFeel.getInactiveControlTextColor()
           
 ColorUIResource MetalTheme.getInactiveControlTextColor()
           
 ColorUIResource OceanTheme.getInactiveControlTextColor()
          返回 Metal 外观应该用作非活动控件的默认颜色的颜色。
static ColorUIResource MetalLookAndFeel.getInactiveSystemTextColor()
           
 ColorUIResource MetalTheme.getInactiveSystemTextColor()
           
static ColorUIResource MetalLookAndFeel.getMenuBackground()
           
 ColorUIResource MetalTheme.getMenuBackground()
           
static ColorUIResource MetalLookAndFeel.getMenuDisabledForeground()
           
 ColorUIResource MetalTheme.getMenuDisabledForeground()
           
 ColorUIResource OceanTheme.getMenuDisabledForeground()
          返回 Metal 外观应该用作禁用菜单项的前景色的颜色。
static ColorUIResource MetalLookAndFeel.getMenuForeground()
           
 ColorUIResource MetalTheme.getMenuForeground()
           
static ColorUIResource MetalLookAndFeel.getMenuSelectedBackground()
           
 ColorUIResource MetalTheme.getMenuSelectedBackground()
           
static ColorUIResource MetalLookAndFeel.getMenuSelectedForeground()
           
 ColorUIResource MetalTheme.getMenuSelectedForeground()
           
protected abstract  ColorUIResource MetalTheme.getPrimary1()
           
protected  ColorUIResource DefaultMetalTheme.getPrimary1()
           
protected  ColorUIResource OceanTheme.getPrimary1()
          返回 Metal 外观应该用作 "Primary 1" 的颜色。
protected abstract  ColorUIResource MetalTheme.getPrimary2()
           
protected  ColorUIResource DefaultMetalTheme.getPrimary2()
           
protected  ColorUIResource OceanTheme.getPrimary2()
          返回 Metal 外观应该用作 "Primary 2" 的颜色。
protected abstract  ColorUIResource MetalTheme.getPrimary3()
           
protected  ColorUIResource DefaultMetalTheme.getPrimary3()
           
protected  ColorUIResource OceanTheme.getPrimary3()
          返回 Metal 外观应该用作 "Primary 3" 的颜色。
static ColorUIResource MetalLookAndFeel.getPrimaryControl()
           
 ColorUIResource MetalTheme.getPrimaryControl()
           
static ColorUIResource MetalLookAndFeel.getPrimaryControlDarkShadow()
           
 ColorUIResource MetalTheme.getPrimaryControlDarkShadow()
           
static ColorUIResource MetalLookAndFeel.getPrimaryControlHighlight()
           
 ColorUIResource MetalTheme.getPrimaryControlHighlight()
           
static ColorUIResource MetalLookAndFeel.getPrimaryControlInfo()
           
 ColorUIResource MetalTheme.getPrimaryControlInfo()
           
static ColorUIResource MetalLookAndFeel.getPrimaryControlShadow()
           
 ColorUIResource MetalTheme.getPrimaryControlShadow()
           
protected abstract  ColorUIResource MetalTheme.getSecondary1()
           
protected  ColorUIResource DefaultMetalTheme.getSecondary1()
           
protected  ColorUIResource OceanTheme.getSecondary1()
          返回 Metal 外观应该用作 "Secondary 1" 的颜色。
protected abstract  ColorUIResource MetalTheme.getSecondary2()
           
protected  ColorUIResource DefaultMetalTheme.getSecondary2()
           
protected  ColorUIResource OceanTheme.getSecondary2()
          返回 Metal 外观应该用作 "Secondary 2" 的颜色。
protected abstract  ColorUIResource MetalTheme.getSecondary3()
           
protected  ColorUIResource DefaultMetalTheme.getSecondary3()
           
protected  ColorUIResource OceanTheme.getSecondary3()
          返回 Metal 外观应该用作 "Secondary 3" 的颜色。
static ColorUIResource MetalLookAndFeel.getSeparatorBackground()
           
 ColorUIResource MetalTheme.getSeparatorBackground()
           
static ColorUIResource MetalLookAndFeel.getSeparatorForeground()
           
 ColorUIResource MetalTheme.getSeparatorForeground()
           
static ColorUIResource MetalLookAndFeel.getSystemTextColor()
           
 ColorUIResource MetalTheme.getSystemTextColor()
          返回标签和带标题边框中的文本的默认颜色。
static ColorUIResource MetalLookAndFeel.getTextHighlightColor()
           
 ColorUIResource MetalTheme.getTextHighlightColor()
           
static ColorUIResource MetalLookAndFeel.getUserTextColor()
           
 ColorUIResource MetalTheme.getUserTextColor()
           
static ColorUIResource MetalLookAndFeel.getWhite()
           
protected  ColorUIResource MetalTheme.getWhite()
           
static ColorUIResource MetalLookAndFeel.getWindowBackground()
           
 ColorUIResource MetalTheme.getWindowBackground()
           
static ColorUIResource MetalLookAndFeel.getWindowTitleBackground()
           
 ColorUIResource MetalTheme.getWindowTitleBackground()
           
static ColorUIResource MetalLookAndFeel.getWindowTitleForeground()
           
 ColorUIResource MetalTheme.getWindowTitleForeground()
           
static ColorUIResource MetalLookAndFeel.getWindowTitleInactiveBackground()
           
 ColorUIResource MetalTheme.getWindowTitleInactiveBackground()
           
static ColorUIResource MetalLookAndFeel.getWindowTitleInactiveForeground()
           
 ColorUIResource MetalTheme.getWindowTitleInactiveForeground()
           
 


JavaTM 2 Platform
Standard Ed. 5.0

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策