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

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

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

revision 1.3 by rabbit78, Wed Apr 27 12:39:08 2005 UTC revision 1.4 by rabbit78, Mon Jun 13 15:19:19 2005 UTC
# Line 129  public class MetalScrollBarUI Line 129  public class MetalScrollBarUI
129                 thumbBounds.y + thumbBounds.height);                 thumbBounds.y + thumbBounds.height);
130    
131      // draw the pattern      // draw the pattern
132      int xOff = 0;      MetalUtils.fillMetalPattern(g, thumbBounds.x + 3, thumbBounds.y + 3,
133      for (int y = thumbBounds.y + 4;                                  thumbBounds.width - 6, thumbBounds.height - 6,
134           y < (thumbBounds.y + thumbBounds.height - 4); y++)                                  thumbHighlightColor, thumbDarkShadowColor);
       {  
         // set color alternating with every line  
         if ((y % 2) == 0)  
           g.setColor(thumbHighlightColor);  
         else  
           g.setColor(thumbDarkShadowColor);  
   
         for (int x = thumbBounds.x + 3 + (xOff);  
              x < (thumbBounds.x + thumbBounds.width - 3); x = x + 4)  
           {  
             g.drawLine(x, y, x, y);  
           }  
   
         // increase x offset  
         xOff++;  
         if (xOff > 3)  
           xOff = 0;  
   
       }  
135    }    }
136    
137    /**    /**

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

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