public class CMYKColor
extends java.lang.Object
Class for CMYK color. Null means CMYK is not used, default RGB color is in use.
| Constructor and Description |
|---|
CMYKColor(int c,
int m,
int y,
int k)
Initializes a new instance of the
CMYKColor class from CMYK values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares if values of colors are the same
|
int |
hashCode()
Hash code of CMYKColor
|
public CMYKColor(int c,
int m,
int y,
int k)
Initializes a new instance of the CMYKColor class from CMYK values.
CMYK values are 0-100.
c - Cyan value [0, 100]m - Magenta value [0, 100]y - Yellow value [0, 100]k - Black value [0, 100]public boolean equals(java.lang.Object obj)
Compares if values of colors are the same
equals in class java.lang.Objectobj - CMYKColor to comparepublic int hashCode()
Hash code of CMYKColor
hashCode in class java.lang.Object