JavaTM 2 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 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only