JavaTM Platform
Standard Ed. 6

类 javax.swing.plaf.synth.ColorType
的使用

使用 ColorType 的软件包
javax.swing.plaf.synth Synth 是一个可更换皮肤 (skinnable) 的外观,在其中可委托所有绘制。 
 

javax.swing.plaf.synthColorType 的使用
 

声明为 ColorTypejavax.swing.plaf.synth 中的字段
static ColorType ColorType.BACKGROUND
          某一 region 背景的 ColorType。
static ColorType ColorType.FOCUS
          焦点的 ColorType。
static ColorType ColorType.FOREGROUND
          某一 region 前景的 ColorType。
static ColorType ColorType.TEXT_BACKGROUND
          某一 region 背景的 ColorType。
static ColorType ColorType.TEXT_FOREGROUND
          某一 region 前景的 ColorType。
 

参数类型为 ColorTypejavax.swing.plaf.synth 中的方法
 Color SynthStyle.getColor(SynthContext context, ColorType type)
          返回指定状态的颜色。
protected abstract  Color SynthStyle.getColorForState(SynthContext context, ColorType type)
          返回指定状态的颜色。
 


JavaTM Platform
Standard Ed. 6

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

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