Class ColorCmyk


  • public final class ColorCmyk
    extends java.lang.Object
    Represents a color in the CMYK color space.

    Contains the constant values for black, white, red, green, blue, cyan, magenta, and yellow.

    Since:
    1.0-alpha1
    See Also:
    https://en.wikipedia.org/wiki/CMYK_color_model
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorCmyk​(double C, double M, double Y, double K)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • CYAN

        public static final ColorCmyk CYAN
        A constant for color cyan. Color components are:
             cyan:    100
             magenta: 0
             yellow:  0
             key:     0
         
      • MAGENTA

        public static final ColorCmyk MAGENTA
        A constant for color magenta. Color components are:
             cyan:    0
             magenta: 100
             yellow:  0
             key:     0
         
      • YELLOW

        public static final ColorCmyk YELLOW
        A constant for color yellow. Color components are:
             cyan:    0
             magenta: 0
             yellow:  100
             key:     0
         
      • BLACK

        public static final ColorCmyk BLACK
        A constant for color black. Color components are:
             cyan:    0
             magenta: 0
             yellow:  0
             key:     100
         
      • WHITE

        public static final ColorCmyk WHITE
        A constant for color white. Color components are:
             cyan:    0
             magenta: 0
             yellow:  0
             key:     0
         
      • RED

        public static final ColorCmyk RED
        A constant for color red. Color components are:
             cyan:    0
             magenta: 100
             yellow:  100
             key:     0
         
      • GREEN

        public static final ColorCmyk GREEN
        A constant for color green. Color components are:
             cyan:    100
             magenta: 0
             yellow:  100
             key:     0
         
      • BLUE

        public static final ColorCmyk BLUE
        A constant for color blue. Color components are:
             cyan:    100
             magenta: 100
             yellow:  0
             key:     0
         
      • C

        public final double C
      • M

        public final double M
      • Y

        public final double Y
      • K

        public final double K
    • Constructor Detail

      • ColorCmyk

        public ColorCmyk​(double C,
                         double M,
                         double Y,
                         double K)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object