程序包 dev.utils.common
类 ColorUtils.ColorInfo
- java.lang.Object
-
- dev.utils.common.ColorUtils.ColorInfo
-
- 封闭类:
- ColorUtils
public static class ColorUtils.ColorInfo extends java.lang.Objectdetail: 颜色信息- 作者:
- Ttt
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classColorUtils.ColorInfo.ColorParserdetail: Color 解析器static interfaceColorUtils.ColorInfo.Parserdetail: Color 解析器
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetAlpha()返回颜色中的透明度值 ( 返回十进制 )intgetBlue()返回颜色中蓝色的色值 ( 返回十进制 )floatgetBrightness()获取颜色亮度intgetGrayLevel()获取灰度值intgetGreen()返回颜色中绿色的色值 ( 返回十进制 )floatgetHue()获取颜色色调java.lang.StringgetKey()获取 KeyintgetRed()返回颜色中红色的色值 ( 返回十进制 )floatgetSaturation()获取颜色饱和度java.lang.StringgetValue()获取 ValuelonggetValueColor()获取 ARGB/RGB colorjava.lang.StringgetValueParser()获取 Value 解析后的值 ( 如: #000 => #000000 )java.lang.StringtoString()
-
-
-
方法详细资料
-
getKey
public java.lang.String getKey()
获取 Key- 返回:
- key String
-
getValue
public java.lang.String getValue()
获取 Value- 返回:
- value String
-
getValueParser
public java.lang.String getValueParser()
获取 Value 解析后的值 ( 如: #000 => #000000 )- 返回:
- value 解析后的值 ( 如: #000 => #000000 )
-
getValueColor
public long getValueColor()
获取 ARGB/RGB color- 返回:
- ARGB/RGB color
-
getAlpha
public int getAlpha()
返回颜色中的透明度值 ( 返回十进制 )- 返回:
- alpha 值
-
getRed
public int getRed()
返回颜色中红色的色值 ( 返回十进制 )- 返回:
- red 值
-
getGreen
public int getGreen()
返回颜色中绿色的色值 ( 返回十进制 )- 返回:
- green 值
-
getBlue
public int getBlue()
返回颜色中蓝色的色值 ( 返回十进制 )- 返回:
- blue 值
-
getGrayLevel
public int getGrayLevel()
获取灰度值- 返回:
- 灰度值
-
getHue
public float getHue()
获取颜色色调- 返回:
- 颜色色调
-
getSaturation
public float getSaturation()
获取颜色饱和度- 返回:
- 颜色饱和度
-
getBrightness
public float getBrightness()
获取颜色亮度- 返回:
- 颜色亮度
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-