Enum Colors.RgbaType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Colors.RgbaType>
    Enclosing class:
    Colors

    public static enum Colors.RgbaType
    extends java.lang.Enum<Colors.RgbaType>
    Types of RGBA colors.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      LINEAR
      The color is defined in linear space and the RGB values have not been premultiplied by the alpha (for instance, a 50% transparent red is <1,0,0,0.5>).
      PREMULTIPLIED_LINEAR
      The color is defined in linear space and the RGB values have been premultiplied by the alpha (for instance, a 50% transparent red is <0.5,0,0,0.5>).
      PREMULTIPLIED_SRGB
      The color is defined in sRGB space and the RGB values have been premultiplied by the alpha (for instance, a 50% transparent red is <0.5,0,0,0.5>).
      SRGB
      The color is defined in sRGB space and the RGB values have not been premultiplied by the alpha (for instance, a 50% transparent red is <1,0,0,0.5>).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Colors.RgbaType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Colors.RgbaType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SRGB

        public static final Colors.RgbaType SRGB
        The color is defined in sRGB space and the RGB values have not been premultiplied by the alpha (for instance, a 50% transparent red is <1,0,0,0.5>).
      • LINEAR

        public static final Colors.RgbaType LINEAR
        The color is defined in linear space and the RGB values have not been premultiplied by the alpha (for instance, a 50% transparent red is <1,0,0,0.5>).
      • PREMULTIPLIED_SRGB

        public static final Colors.RgbaType PREMULTIPLIED_SRGB
        The color is defined in sRGB space and the RGB values have been premultiplied by the alpha (for instance, a 50% transparent red is <0.5,0,0,0.5>).
      • PREMULTIPLIED_LINEAR

        public static final Colors.RgbaType PREMULTIPLIED_LINEAR
        The color is defined in linear space and the RGB values have been premultiplied by the alpha (for instance, a 50% transparent red is <0.5,0,0,0.5>).
    • Method Detail

      • values

        public static Colors.RgbaType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Colors.RgbaType c : Colors.RgbaType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Colors.RgbaType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null