Searched refs:hue (Results 1 - 5 of 5) sorted by relevance

/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/
H A DColorModelHSL.java71 float hue = hsl[0];
76 hue = (hue < 1.0f) ? hue * 6.0f : 0.0f;
79 rgb[0]= normalize(q, p, (hue < 4.0f) ? (hue + 2.0f) : (hue - 4.0f));
80 rgb[1]= normalize(q, p, hue);
81 rgb[2]= normalize(q, p, (hue < 2.0f) ? (hue
[all...]
H A DColorModelHSV.java71 float hue = hsv[0];
80 hue = (hue < 1.0f) ? hue * 6.0f : 0.0f;
81 int integer = (int) hue;
82 float f = hue - (float) integer;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/
H A DGTKColorChooserPanel.java37 * hue and a triangle that varies saturation and brightness.
63 private float hue; field in class:GTKColorChooserPanel
203 add(this, "GTKColorChooserPanel.hue", hueSpinner, -1, -1);
324 * Sets the hue of the selected color and updates the display if
327 private void setHue(float hue, boolean update) { argument
328 setHSB(hue, saturation, brightness);
331 hueSpinner.setValue(Integer.valueOf((int)(hue * 360)));
337 * Returns the current amount of hue.
340 return hue;
347 setHSB(hue, saturatio
1046 setAngleFromHue(float hue) argument
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DColor.java818 * (numbers in the range 0.0-1.0). The <code>hue</code> component
821 * fractional number is then multiplied by 360 to produce the hue
829 * @param hue the hue component of the color
832 * @return the RGB value of the color with the indicated hue,
839 public static int HSBtoRGB(float hue, float saturation, float brightness) { argument
844 float h = (hue - (float)Math.floor(hue)) * 6.0f;
887 * model, to an equivalent set of values for hue, saturation, and
899 * @return an array of three elements containing the hue, saturatio
[all...]
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXComponentPeer.java860 float backb, highb, shadowb, hue, saturation;
873 hue = hsb[0];
898 c[HIGHLIGHT_COLOR] = Color.getHSBColor(hue,saturation,highb);
899 c[SHADOW_COLOR] = Color.getHSBColor(hue,saturation,shadowb);

Completed in 39 milliseconds