APIdia Launch Partner
Top Constructors Methods
javax.swing.colorchooser

pack-priv final Class ColorModelHSV

extends ColorModel
Class Inheritance

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv float
pack-priv int
private static float[]

Returns:

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

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

private static float[]

Returns:

a float array that contains HSV components
RGBtoHSV
(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 HSV components
hsv
)

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

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

Overrides javax.swing.colorchooser.ColorModel.setColor.

Inherited from javax.swing.colorchooser.ColorModel:
getCountgetIntegergetLabelgetMinimumgetText

Constructor Detail

ColorModelHSVback to summary
pack-priv ColorModelHSV()

Method Detail

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

Overrides javax.swing.colorchooser.ColorModel.getColor.

Annotations
@Override
getDefaultback to summary
pack-priv float getDefault(int index)

Overrides javax.swing.colorchooser.ColorModel.getDefault.

Annotations
@Override
getMaximumback to summary
pack-priv int getMaximum(int index)

Overrides javax.swing.colorchooser.ColorModel.getMaximum.

Annotations
@Override
HSVtoRGBback to summary
private static float[] HSVtoRGB(float[] hsv, float[] rgb)

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

Parameters
hsv:float[]

a float array with length equal to the number of HSV 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

RGBtoHSVback to summary
private static float[] RGBtoHSV(float[] rgb, float[] hsv)

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

Parameters
rgb:float[]

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

hsv:float[]

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

Returns:float[]

a float array that contains HSV components

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

Overrides javax.swing.colorchooser.ColorModel.setColor.

Annotations
@Override