Commit 2e22d9b8 by Bryce McKinlay Committed by Bryce McKinlay

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
parent 505ce70d
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
Object.clone(). Object.clone().
* java/util/Collections.java (ReverseComparator): New static class. * java/util/Collections.java (ReverseComparator): New static class.
(reverseOrder): Return static instance of ReverseComparator. (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> 2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
......
...@@ -79,4 +79,6 @@ public interface DirectRasterGraphics extends Cloneable ...@@ -79,4 +79,6 @@ public interface DirectRasterGraphics extends Cloneable
* Detach previously mapped pixel data from a raster object. * Detach previously mapped pixel data from a raster object.
*/ */
public void unmapRaster(MappedRaster mappedRaster); public void unmapRaster(MappedRaster mappedRaster);
public Object clone();
} }
...@@ -69,7 +69,6 @@ public class IntegerGraphicsState extends AbstractGraphicsState ...@@ -69,7 +69,6 @@ public class IntegerGraphicsState extends AbstractGraphicsState
super.dispose(); super.dispose();
} }
// -------- Graphics methods: // -------- Graphics methods:
public void setColor(Color color) public void setColor(Color color)
...@@ -101,7 +100,7 @@ public class IntegerGraphicsState extends AbstractGraphicsState ...@@ -101,7 +100,7 @@ public class IntegerGraphicsState extends AbstractGraphicsState
{ {
if (clip instanceof Rectangle) if (clip instanceof Rectangle)
{ {
Rectangle clipRect = (Rectangle) clip.clone(); Rectangle clipRect = (Rectangle) ((Rectangle) clip).clone();
clipRect.x += tx; clipRect.x += tx;
clipRect.y += ty; clipRect.y += ty;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment