/[classpath]/classpath/javax/swing/plaf/metal/MetalUtils.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/metal/MetalUtils.java

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

revision 1.2.2.1 by gnu_andrew, Tue Aug 2 20:12:38 2005 UTC revision 1.2.2.2 by gnu_andrew, Tue Sep 20 18:46:34 2005 UTC
# Line 1  Line 1 
1  /* Metaltils.java  /* MetalUtils.java
2  Copyright (C) 2005 Free Software Foundation, Inc.  Copyright (C) 2005 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
# Line 57  class MetalUtils Line 57  class MetalUtils
57     * @param y the Y coordinate of the upper left corner of the rectangle to     * @param y the Y coordinate of the upper left corner of the rectangle to
58     *     fill     *     fill
59     * @param w the width of the rectangle to fill     * @param w the width of the rectangle to fill
60     * @param w the height of the rectangle to fill     * @param h the height of the rectangle to fill
61     * @param light the light color to use     * @param light the light color to use
62     * @param dark the dark color to use     * @param dark the dark color to use
63     */     */
# Line 68  class MetalUtils Line 68  class MetalUtils
68      for (int mY = y; mY < (y + h); mY++)      for (int mY = y; mY < (y + h); mY++)
69        {        {
70          // set color alternating with every line          // set color alternating with every line
71          if ((mY % 2) == 0)          if (((mY - y) % 2) == 0)
72            g.setColor(light);            g.setColor(light);
73          else          else
74            g.setColor(dark);            g.setColor(dark);

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

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