aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2001-02-15 04:36:34 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2001-02-15 04:36:34 +0000
commit2e22d9b885c204ce26b88733df88d9d22598734b (patch)
treee49f7765fd9d7fff4c654651347fe409b55beae5 /libjava/gnu
parent505ce70d3ff1a66b476ec41109deb68ac0d44fde (diff)
downloadgcc-2e22d9b885c204ce26b88733df88d9d22598734b.zip
gcc-2e22d9b885c204ce26b88733df88d9d22598734b.tar.gz
gcc-2e22d9b885c204ce26b88733df88d9d22598734b.tar.bz2
DirectRasterGraphics.java (clone): Hoist to public.
* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public. * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call Rectangle.clone(), not Object.clone(). From-SVN: r39706
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/awt/j2d/DirectRasterGraphics.java2
-rw-r--r--libjava/gnu/awt/j2d/IntegerGraphicsState.java3
2 files changed, 3 insertions, 2 deletions
diff --git a/libjava/gnu/awt/j2d/DirectRasterGraphics.java b/libjava/gnu/awt/j2d/DirectRasterGraphics.java
index 6bbdbd1..8d25b88 100644
--- a/libjava/gnu/awt/j2d/DirectRasterGraphics.java
+++ b/libjava/gnu/awt/j2d/DirectRasterGraphics.java
@@ -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();
}
diff --git a/libjava/gnu/awt/j2d/IntegerGraphicsState.java b/libjava/gnu/awt/j2d/IntegerGraphicsState.java
index 923720e..90a1a4d 100644
--- a/libjava/gnu/awt/j2d/IntegerGraphicsState.java
+++ b/libjava/gnu/awt/j2d/IntegerGraphicsState.java
@@ -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;