| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv float | |
| pack-priv static float | Returns: the hue componentthe red component of the color red, float the green component of the color green, float the blue component of the color blue, float the larger of max, float red, green and bluethe smaller of min)red, green and blueCalculates the hue component for HSL and HSV color spaces. |
| pack-priv int | |
| private static float[] | Returns: a float array that contains RGB componentsa float array with length equal to
the number of HSL components hsl, float[] a float array with length of at least 3
that contains RGB components of a color rgb)Converts HSL components of a color to a set of RGB components. |
| pack-priv static float | Returns: the larger ofred, green and bluethe red component of the color red, float the green component of the color green, float the blue component of the color blue)Returns the larger of three color components. |
| pack-priv static float | Returns: the smaller ofred, green and bluethe red component of the color red, float the green component of the color green, float the blue component of the color blue)Returns the smaller of three color components. |
| private static float | |
| private static float[] | Returns: a float array that contains HSL componentsa 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 HSL components hsl)Converts RGB components of a color to a set of HSL components. |
| pack-priv void |
| ColorModelHSL | back to summary |
|---|---|
| pack-priv ColorModelHSL() | |
| getColor | back to summary |
|---|---|
| pack-priv int getColor(float[] space) Overrides javax.
| |
| getDefault | back to summary |
|---|---|
| pack-priv float getDefault(int index) Overrides javax.
| |
| getHue | back to summary |
|---|---|
| pack-priv static float getHue(float red, float green, float blue, float max, float min) Calculates the hue component for HSL and HSV color spaces.
| |
| getMaximum | back to summary |
|---|---|
| pack-priv int getMaximum(int index) Overrides javax.
| |
| HSLtoRGB | back to summary |
|---|---|
| private static float[] HSLtoRGB(float[] hsl, float[] rgb) Converts HSL components of a color to a set of RGB components.
| |
| max | back to summary |
|---|---|
| pack-priv static float max(float red, float green, float blue) Returns the larger of three color components.
| |
| min | back to summary |
|---|---|
| pack-priv static float min(float red, float green, float blue) Returns the smaller of three color components.
| |
| normalize | back to summary |
|---|---|
| private static float normalize(float q, float p, float color) | |
| RGBtoHSL | back to summary |
|---|---|
| private static float[] RGBtoHSL(float[] rgb, float[] hsl) Converts RGB components of a color to a set of HSL components.
| |
| setColor | back to summary |
|---|---|
| pack-priv void setColor(int color, float[] space) Overrides javax.
| |