/[classpath]/classpath/javax/swing/CellRendererPane.java
ViewVC logotype

Diff of /classpath/javax/swing/CellRendererPane.java

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

revision 1.10 by rabbit78, Tue Jul 26 15:30:54 2005 UTC revision 1.11 by rabbit78, Wed Oct 12 19:36:15 2005 UTC
# Line 175  public class CellRendererPane Line 175  public class CellRendererPane
175      // reparent c      // reparent c
176      addImpl(c, null, 0);      addImpl(c, null, 0);
177    
178        Rectangle oldClip = graphics.getClipBounds();
179      // translate to (x,y)      // translate to (x,y)
180      graphics.translate(x, y);      graphics.translate(x, y);
181        graphics.clipRect(0, 0, w, h);
182      // set bounds of c      // set bounds of c
183      c.setBounds(0, 0, w, h);      c.setBounds(0, 0, w, h);
184    
# Line 192  public class CellRendererPane Line 193  public class CellRendererPane
193    
194      // untranslate g      // untranslate g
195      graphics.translate(-x, -y);      graphics.translate(-x, -y);
196        graphics.setClip(oldClip);
197    } // paintComponent()    } // paintComponent()
198    
199    /**    /**

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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