程序包 dev.utils.common

类 ColorUtils.ColorInfo

java.lang.Object
dev.utils.common.ColorUtils.ColorInfo
封闭类:
ColorUtils

public static class ColorUtils.ColorInfo extends Object
detail: 颜色信息
作者:
Ttt
  • 构造器详细资料

    • ColorInfo

      public ColorInfo(String key, String value)
      构造函数
      参数:
      key - Key
      value - Value ( 如: #000000 )
    • ColorInfo

      public ColorInfo(String key, int valueColor)
      构造函数
      参数:
      key - Key
      valueColor - ARGB/RGB color
  • 方法详细资料

    • getKey

      public String getKey()
      获取 Key
      返回:
      key String
    • getValue

      public String getValue()
      获取 Value
      返回:
      value String
    • getValueParser

      public 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 String toString()
      覆盖:
      toString 在类中 Object