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
This commit is contained in:
Bryce McKinlay
2001-02-15 04:36:34 +00:00
committed by Bryce McKinlay
parent 505ce70d3f
commit 2e22d9b885
3 changed files with 7 additions and 2 deletions
@@ -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();
}
@@ -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;