public class ColorUtilities
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
static java.awt.Color |
brighter(java.awt.Color color, int percent)
修改颜色深浅
|
static java.awt.Color |
darker(java.awt.Color color, int percent)
修改颜色深浅
|
static java.awt.Color |
getBorderColor()
获取当前皮肤边框颜色
|
static java.awt.Color |
getDisabledTextColor()
获取当前皮肤不可用文本颜色
|
static java.awt.Color |
getHighlightColor()
获取当前皮肤高亮颜色
|
static java.awt.Color |
getNormalTextColor()
获取当前皮肤的普通文本颜色,现文本颜色只有可用与不可用之分。
|
static java.awt.Color |
resetColorAlpha(java.awt.Color color, double alpha)
修改颜色透明度
|
static java.awt.Color |
resetColorAlpha(java.awt.Color color, float alpha)
修改颜色透明度
|
static java.awt.Color |
resetColorAlpha(java.awt.Color color, int alpha)
修改颜色透明度
|
public static java.awt.Color getNormalTextColor()
public static java.awt.Color getDisabledTextColor()
public static java.awt.Color getHighlightColor()
public static java.awt.Color getBorderColor()
public static java.awt.Color darker(java.awt.Color color, int percent)
color
- 颜色percent
- 变化的百分比 范围[0,100]public static java.awt.Color brighter(java.awt.Color color, int percent)
color
- 颜色percent
- 变化的百分比 范围[0,100]public static java.awt.Color resetColorAlpha(java.awt.Color color, int alpha)
color
- 颜色alpha
- 透明度 范围[0,100] 数值越大越透明public static java.awt.Color resetColorAlpha(java.awt.Color color, double alpha)
color
- 颜色alpha
- 透明度 范围[0,100]public static java.awt.Color resetColorAlpha(java.awt.Color color, float alpha)
color
- 颜色alpha
- 透明度 范围[0,100]