CMYKColor
Contents
[
Hide
]Inheritance: java.lang.Object
public class CMYKColor
Class for CMYK color. Null means CMYK is not used, default RGB color is in use.
Constructors
Constructor | Description |
---|---|
CMYKColor(int c, int m, int y, int k) | Initializes a new instance of the CMYKColor class from CMYK values. |
Fields
Field | Description |
---|---|
C | |
K | |
M | |
Y |
Methods
Method | Description |
---|---|
equals(Object obj) | Compares if values of colors are the same |
getClass() | |
hashCode() | Hash code of CMYKColor |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
CMYKColor(int c, int m, int y, int k)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
c | int | Cyan value [0, 100] |
m | int | Magenta value [0, 100] |
y | int | Yellow value [0, 100] |
k | int | Black value [0, 100] |
C
public float C
K
public float K
M
public float M
Y
public float Y
equals(Object obj)
public boolean equals(Object obj)
Compares if values of colors are the same
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | CMYKColor to compare |
Returns: boolean - Are values the same
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public int hashCode()
Hash code of CMYKColor
Returns: int - Hash code of CMYKColor
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |