/[classpath]/classpath/gnu/java/awt/peer/gtk/GdkGraphics.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/gtk/GdkGraphics.java

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

revision 1.27.2.5 by gnu_andrew, Sat Feb 19 10:50:28 2005 UTC revision 1.27.2.6 by gnu_andrew, Sun Apr 3 00:09:09 2005 UTC
# Line 147  public class GdkGraphics extends Graphic Line 147  public class GdkGraphics extends Graphic
147          int height = img.getHeight (null);          int height = img.getHeight (null);
148          copyPixmap (img.getGraphics (),          copyPixmap (img.getGraphics (),
149                      x, y, width, height);                      x, y, width, height);
         // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.  
         if (observer != null)  
           observer.imageUpdate (img,  
                                 ImageObserver.FRAMEBITS,  
                                 x, y, width, height);  
150          return true;          return true;
151        }        }
152    
# Line 171  public class GdkGraphics extends Graphic Line 166  public class GdkGraphics extends Graphic
166          int height = img.getHeight (null);          int height = img.getHeight (null);
167          copyPixmap (img.getGraphics (),          copyPixmap (img.getGraphics (),
168                      x, y, width, height);                      x, y, width, height);
   
         // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.  
         if (observer != null)  
           observer.imageUpdate (img,  
                                 ImageObserver.FRAMEBITS,  
                                 x, y, width, height);  
169          return true;          return true;
170        }        }
171    
# Line 197  public class GdkGraphics extends Graphic Line 186  public class GdkGraphics extends Graphic
186          copyAndScalePixmap (img.getGraphics (), false, false,          copyAndScalePixmap (img.getGraphics (), false, false,
187                              0, 0, img.getWidth (null), img.getHeight (null),                              0, 0, img.getWidth (null), img.getHeight (null),
188                              x, y, width, height);                              x, y, width, height);
         // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.  
         if (observer != null)  
           observer.imageUpdate (img,  
                                 ImageObserver.FRAMEBITS,  
                                 x, y, width, height);  
189          return true;          return true;
190        }        }
191    
# Line 286  public class GdkGraphics extends Graphic Line 270  public class GdkGraphics extends Graphic
270          copyAndScalePixmap (img.getGraphics (), x_flip, y_flip,          copyAndScalePixmap (img.getGraphics (), x_flip, y_flip,
271                              sx_start, sy_start, s_width, s_height,                              sx_start, sy_start, s_width, s_height,
272                              dx_start, dy_start, d_width, d_height);                              dx_start, dy_start, d_width, d_height);
   
         // FIXME: need to differentiate between SOMEBITS and FRAMEBITS.  
         if (observer != null)  
           observer.imageUpdate (img,  
                                 ImageObserver.FRAMEBITS,  
                                 dx_start, dy_start, d_width, d_height);  
273          return true;          return true;
274        }        }
275    
# Line 404  public class GdkGraphics extends Graphic Line 382  public class GdkGraphics extends Graphic
382    
383    public Rectangle getClipBounds ()    public Rectangle getClipBounds ()
384    {    {
385      return new Rectangle (clip.x, clip.y, clip.width, clip.height);      if (clip == null)
386          return null;
387        else
388          return clip.getBounds();
389    }    }
390    
391    public Color getColor ()    public Color getColor ()
# Line 445  public class GdkGraphics extends Graphic Line 426  public class GdkGraphics extends Graphic
426    
427    public void setClip (Shape clip)    public void setClip (Shape clip)
428    {    {
429      setClip (clip.getBounds ());      if (clip != null)
430          setClip(clip.getBounds());
431    }    }
432    
433    private native void setFGColor(int red, int green, int blue);    private native void setFGColor(int red, int green, int blue);

Legend:
Removed from v.1.27.2.5  
changed lines
  Added in v.1.27.2.6

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