Top Constructors Methods
javax.swing.colorchooser

pack-priv final Class ColorModelCMYK

extends ColorModel
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static float[]

Returns:

a float array that contains RGB components
CMYKtoRGB
(float[]
a float array with length equal to the number of CMYK components
cmyk
,
float[]
a float array with length of at least 3 that contains RGB components of a color
rgb
)

Converts CMYK components of a color to a set of RGB components.

pack-priv int
private static float[]

Returns:

a float array that contains CMYK components
RGBtoCMYK
(float[]
a float array with length of at least 3 that contains RGB components of a color
rgb
,
float[]
a float array with length equal to the number of CMYK components
cmyk
)

Converts RGB components of a color to a set of CMYK components.

pack-priv void
setColor(int color, float[] space)

Overrides javax.swing.colorchooser.ColorModel.setColor.

Inherited from javax.swing.colorchooser.ColorModel:
getCountgetDefaultgetIntegergetLabelgetMaximumgetMinimumgetText

Constructor Detail

ColorModelCMYKback to summary
pack-priv ColorModelCMYK()

Method Detail

CMYKtoRGBback to summary
private static float[] CMYKtoRGB(float[] cmyk, float[] rgb)

Converts CMYK components of a color to a set of RGB components.

Parameters
cmyk:float[]

a float array with length equal to the number of CMYK components

rgb:float[]

a float array with length of at least 3 that contains RGB components of a color

Returns:float[]

a float array that contains RGB components

getColorback to summary
pack-priv int getColor(float[] space)

Overrides javax.swing.colorchooser.ColorModel.getColor.

Annotations
@Override
RGBtoCMYKback to summary
private static float[] RGBtoCMYK(float[] rgb, float[] cmyk)

Converts RGB components of a color to a set of CMYK components.

Parameters
rgb:float[]

a float array with length of at least 3 that contains RGB components of a color

cmyk:float[]

a float array with length equal to the number of CMYK components

Returns:float[]

a float array that contains CMYK components

setColorback to summary
pack-priv void setColor(int color, float[] space)

Overrides javax.swing.colorchooser.ColorModel.setColor.

Annotations
@Override