CMYKColor

Inheritance: java.lang.Object

public class CMYKColor

Class for CMYK color. Null means CMYK is not used, default RGB color is in use.

Constructors

ConstructorDescription
CMYKColor(int c, int m, int y, int k)Initializes a new instance of the CMYKColor class from CMYK values.

Fields

FieldDescription
C
K
M
Y

Methods

MethodDescription
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:

ParameterTypeDescription
cintCyan value [0, 100]
mintMagenta value [0, 100]
yintYellow value [0, 100]
kintBlack 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:

ParameterTypeDescription
objjava.lang.ObjectCMYKColor 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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int