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

MetalTheme (Java 2 Platform SE 5.0) - JavaTM 2 Platform Standard Edition 5.0 API 规范中文版

JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.metal
类 MetalTheme

java.lang.Object
  继承者 javax.swing.plaf.metal.MetalTheme
直接已知子类:
DefaultMetalTheme

public abstract class MetalTheme
extends Object

此抽象类是描述 Metal 使用的颜色的一般方法。可以使用 MetalTheme 的子类来交换 Metal 应用程序中的颜色。


构造方法摘要
MetalTheme()
           
 
方法摘要
 void addCustomEntriesToTable(UIDefaults table)
           
 ColorUIResource getAcceleratorForeground()
           
 ColorUIResource getAcceleratorSelectedForeground()
           
protected  ColorUIResource getBlack()
           
 ColorUIResource getControl()
           
 ColorUIResource getControlDarkShadow()
           
 ColorUIResource getControlDisabled()
           
 ColorUIResource getControlHighlight()
           
 ColorUIResource getControlInfo()
           
 ColorUIResource getControlShadow()
           
 ColorUIResource getControlTextColor()
           
abstract  FontUIResource getControlTextFont()
           
 ColorUIResource getDesktopColor()
           
 ColorUIResource getFocusColor()
           
 ColorUIResource getHighlightedTextColor()
           
 ColorUIResource getInactiveControlTextColor()
           
 ColorUIResource getInactiveSystemTextColor()
           
 ColorUIResource getMenuBackground()
           
 ColorUIResource getMenuDisabledForeground()
           
 ColorUIResource getMenuForeground()
           
 ColorUIResource getMenuSelectedBackground()
           
 ColorUIResource getMenuSelectedForeground()
           
abstract  FontUIResource getMenuTextFont()
           
abstract  String getName()
           
protected abstract  ColorUIResource getPrimary1()
           
protected abstract  ColorUIResource getPrimary2()
           
protected abstract  ColorUIResource getPrimary3()
           
 ColorUIResource getPrimaryControl()
           
 ColorUIResource getPrimaryControlDarkShadow()
           
 ColorUIResource getPrimaryControlHighlight()
           
 ColorUIResource getPrimaryControlInfo()
           
 ColorUIResource getPrimaryControlShadow()
           
protected abstract  ColorUIResource getSecondary1()
           
protected abstract  ColorUIResource getSecondary2()
           
protected abstract  ColorUIResource getSecondary3()
           
 ColorUIResource getSeparatorBackground()
           
 ColorUIResource getSeparatorForeground()
           
abstract  FontUIResource getSubTextFont()
           
 ColorUIResource getSystemTextColor()
          返回标签和带标题边框中的文本的默认颜色。
abstract  FontUIResource getSystemTextFont()
           
 ColorUIResource getTextHighlightColor()
           
 ColorUIResource getUserTextColor()
           
abstract  FontUIResource getUserTextFont()
           
protected  ColorUIResource getWhite()
           
 ColorUIResource getWindowBackground()
           
 ColorUIResource getWindowTitleBackground()
           
abstract  FontUIResource getWindowTitleFont()
           
 ColorUIResource getWindowTitleForeground()
           
 ColorUIResource getWindowTitleInactiveBackground()
           
 ColorUIResource getWindowTitleInactiveForeground()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MetalTheme

public MetalTheme()
方法详细信息

getName

public abstract String getName()

getPrimary1

protected abstract ColorUIResource getPrimary1()

getPrimary2

protected abstract ColorUIResource getPrimary2()

getPrimary3

protected abstract ColorUIResource getPrimary3()

getSecondary1

protected abstract ColorUIResource getSecondary1()

getSecondary2

protected abstract ColorUIResource getSecondary2()

getSecondary3

protected abstract ColorUIResource getSecondary3()

getControlTextFont

public abstract FontUIResource getControlTextFont()

getSystemTextFont

public abstract FontUIResource getSystemTextFont()

getUserTextFont

public abstract FontUIResource getUserTextFont()

getMenuTextFont

public abstract FontUIResource getMenuTextFont()

getWindowTitleFont

public abstract FontUIResource getWindowTitleFont()

getSubTextFont

public abstract FontUIResource getSubTextFont()

getWhite

protected ColorUIResource getWhite()

getBlack

protected ColorUIResource getBlack()

getFocusColor

public ColorUIResource getFocusColor()

getDesktopColor

public ColorUIResource getDesktopColor()

getControl

public ColorUIResource getControl()

getControlShadow

public ColorUIResource getControlShadow()

getControlDarkShadow

public ColorUIResource getControlDarkShadow()

getControlInfo

public ColorUIResource getControlInfo()

getControlHighlight

public ColorUIResource getControlHighlight()

getControlDisabled

public ColorUIResource getControlDisabled()

getPrimaryControl

public ColorUIResource getPrimaryControl()

getPrimaryControlShadow

public ColorUIResource getPrimaryControlShadow()

getPrimaryControlDarkShadow

public ColorUIResource getPrimaryControlDarkShadow()

getPrimaryControlInfo

public ColorUIResource getPrimaryControlInfo()

getPrimaryControlHighlight

public ColorUIResource getPrimaryControlHighlight()

getSystemTextColor

public ColorUIResource getSystemTextColor()
返回标签和带标题边框中的文本的默认颜色。


getControlTextColor

public ColorUIResource getControlTextColor()

getInactiveControlTextColor

public ColorUIResource getInactiveControlTextColor()

getInactiveSystemTextColor

public ColorUIResource getInactiveSystemTextColor()

getUserTextColor

public ColorUIResource getUserTextColor()

getTextHighlightColor

public ColorUIResource getTextHighlightColor()

getHighlightedTextColor

public ColorUIResource getHighlightedTextColor()

getWindowBackground

public ColorUIResource getWindowBackground()

getWindowTitleBackground

public ColorUIResource getWindowTitleBackground()

getWindowTitleForeground

public ColorUIResource getWindowTitleForeground()

getWindowTitleInactiveBackground

public ColorUIResource getWindowTitleInactiveBackground()

getWindowTitleInactiveForeground

public ColorUIResource getWindowTitleInactiveForeground()

getMenuBackground

public ColorUIResource getMenuBackground()

getMenuForeground

public ColorUIResource getMenuForeground()

getMenuSelectedBackground

public ColorUIResource getMenuSelectedBackground()

getMenuSelectedForeground

public ColorUIResource getMenuSelectedForeground()

getMenuDisabledForeground

public ColorUIResource getMenuDisabledForeground()

getSeparatorBackground

public ColorUIResource getSeparatorBackground()

getSeparatorForeground

public ColorUIResource getSeparatorForeground()

getAcceleratorForeground

public ColorUIResource getAcceleratorForeground()

getAcceleratorSelectedForeground

public ColorUIResource getAcceleratorSelectedForeground()

addCustomEntriesToTable

public void addCustomEntriesToTable(UIDefaults table)

JavaTM 2 Platform
Standard Ed. 5.0

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

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