DirectRasterGraphics.java (clone): Hoist to public.
authorBryce McKinlay <bryce@albatross.co.nz>
Thu, 15 Feb 2001 04:36:34 +0000 (04:36 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Thu, 15 Feb 2001 04:36:34 +0000 (04:36 +0000)
* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
Rectangle.clone(), not Object.clone().

From-SVN: r39706

libjava/ChangeLog
libjava/gnu/awt/j2d/DirectRasterGraphics.java
libjava/gnu/awt/j2d/IntegerGraphicsState.java

index 0f289343440b32b6882fd13856e5d326c8180194..1d8b086da5e3a764cd3ebfbe80b959b7ff8f4b11 100644 (file)
@@ -4,6 +4,10 @@
        Object.clone().
        * java/util/Collections.java (ReverseComparator): New static class.
        (reverseOrder): Return static instance of ReverseComparator.
+       
+       * gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
+       * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call 
+       Rectangle.clone(), not Object.clone().
 
 2001-02-14  Bryce McKinlay  <bryce@albatross.co.nz>
 
index 6bbdbd1d23ec84766e9882db5e724e6cc3f22b4a..8d25b88d0186f49d93c7b88ea4c77558f50b13fa 100644 (file)
@@ -79,4 +79,6 @@ public interface DirectRasterGraphics extends Cloneable
    * Detach previously mapped pixel data from a raster object.
    */
   public void unmapRaster(MappedRaster mappedRaster);
+  
+  public Object clone();
 }
index 923720e06ae34e64a949d173dda495c7978ff777..90a1a4d2ab59e18e1769f71ce3170d12256d9fc0 100644 (file)
@@ -69,7 +69,6 @@ public class IntegerGraphicsState extends AbstractGraphicsState
     super.dispose();
   }
   
-
   // -------- Graphics methods:
   
   public void setColor(Color color)
@@ -101,7 +100,7 @@ public class IntegerGraphicsState extends AbstractGraphicsState
   {
     if (clip instanceof Rectangle)
       {
-       Rectangle clipRect = (Rectangle) clip.clone();
+       Rectangle clipRect = (Rectangle) ((Rectangle) clip).clone();
        clipRect.x += tx;
        clipRect.y += ty;