/[classpath]/classpath/javax/swing/plaf/ColorUIResource.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/ColorUIResource.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by brawer, Wed Jun 25 07:59:09 2003 UTC revision 1.5 by trebligd, Fri Jun 24 21:45:15 2005 UTC
# Line 1  Line 1 
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    
# Line 63  public class ColorUIResource Line 63  public class ColorUIResource
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    {    {
# Line 71  public class ColorUIResource Line 74  public class ColorUIResource
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.
# Line 93  public class ColorUIResource Line 96  public class ColorUIResource
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    {    {
# Line 105  public class ColorUIResource Line 111  public class ColorUIResource
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    {    {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26