1 |
/* ColorUIResource.java |
/* ColorUIResource.java |
2 |
Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
63 |
* @param r the red intensity, which must be in the range [0 .. 255]. |
* @param r the red intensity, which must be in the range [0 .. 255]. |
64 |
* @param g the green intensity, which must be in the range [0 .. 255]. |
* @param g the green intensity, which must be in the range [0 .. 255]. |
65 |
* @param b the blue intensity, which must be in the range [0 .. 255]. |
* @param b the blue intensity, which must be in the range [0 .. 255]. |
66 |
|
* |
67 |
|
* @throws IllegalArgumentException if any of the values is outside the |
68 |
|
* specified range. |
69 |
*/ |
*/ |
70 |
public ColorUIResource(int r, int g, int b) |
public ColorUIResource(int r, int g, int b) |
71 |
{ |
{ |
74 |
|
|
75 |
|
|
76 |
/** |
/** |
77 |
* Consructs a <code>ColorUIResource</code> using the specified |
* Constructs a <code>ColorUIResource</code> using the specified |
78 |
* RGB value. The blue value is in bits 0-7, green in bits 8-15, and |
* RGB value. The blue value is in bits 0-7, green in bits 8-15, and |
79 |
* red in bits 16-23. The other bits are ignored. The alpha value is set |
* red in bits 16-23. The other bits are ignored. The alpha value is set |
80 |
* to 255, meaning that the color is fully opaque. |
* to 255, meaning that the color is fully opaque. |
96 |
* @param r the red intensity, which must be in the range [0.0 .. 1.0]. |
* @param r the red intensity, which must be in the range [0.0 .. 1.0]. |
97 |
* @param g the green intensity, which must be in the range [0.0 .. 1.0]. |
* @param g the green intensity, which must be in the range [0.0 .. 1.0]. |
98 |
* @param b the blue intensity, which must be in the range [0.0 .. 1.0]. |
* @param b the blue intensity, which must be in the range [0.0 .. 1.0]. |
99 |
|
* |
100 |
|
* @throws IllegalArgumentException if any of the values is outside the |
101 |
|
* specified range. |
102 |
*/ |
*/ |
103 |
public ColorUIResource(float r, float g, float b) |
public ColorUIResource(float r, float g, float b) |
104 |
{ |
{ |
111 |
* of another color. |
* of another color. |
112 |
* |
* |
113 |
* @param c the color whose intensities will be considered when |
* @param c the color whose intensities will be considered when |
114 |
* constructing this <code>ColorUIResource</code>. |
* constructing this <code>ColorUIResource</code> (<code>null</code> |
115 |
|
* not permitted). |
116 |
|
* |
117 |
|
* @throws NullPointerException if <code>c</code> is <code>null</code>. |
118 |
*/ |
*/ |
119 |
public ColorUIResource(Color c) |
public ColorUIResource(Color c) |
120 |
{ |
{ |