/[classpath]/classpath/java/awt/Component.java
ViewVC logotype

Diff of /classpath/java/awt/Component.java

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

revision 1.16 by ericb, Wed May 8 03:07:24 2002 UTC revision 1.17 by tromey, Tue Jan 28 23:43:16 2003 UTC
# Line 1  Line 1 
1  /* Component.java -- a graphics component  /* Component.java -- a graphics component
2     Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation     Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 4168  p   * <li>the set of backward traversal Line 4168  p   * <li>the set of backward traversal
4168        return;        return;
4169    
4170      Graphics gfx = getGraphics();      Graphics gfx = getGraphics();
4171      Shape clip = event.getUpdateRect();      try
4172      gfx.setClip(clip);        {
4173            Shape clip = event.getUpdateRect();
4174            gfx.setClip(clip);
4175    
4176      switch (event.id)          switch (event.id)
4177              {
4178              case PaintEvent.PAINT:
4179                paint(gfx);
4180                break;
4181              case PaintEvent.UPDATE:
4182                update(gfx);
4183                break;
4184              default:
4185                throw new IllegalArgumentException("unknown paint event");
4186              }
4187          }
4188        finally
4189        {        {
4190        case PaintEvent.PAINT:          gfx.dispose();
         paint(gfx);  
         break;  
       case PaintEvent.UPDATE:  
         update(gfx);  
         break;  
       default:  
         throw new IllegalArgumentException("unknown paint event");  
4191        }        }
4192    }    }
4193    

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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