* gnu/awt/j2d/DirectRasterGraphics.java (clone): Hoist to public.
* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
Rectangle.clone(), not Object.clone().
From-SVN: r39706
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>
* Detach previously mapped pixel data from a raster object.
*/
public void unmapRaster(MappedRaster mappedRaster);
+
+ public Object clone();
}
super.dispose();
}
-
// -------- Graphics methods:
public void setColor(Color color)
{
if (clip instanceof Rectangle)
{
- Rectangle clipRect = (Rectangle) clip.clone();
+ Rectangle clipRect = (Rectangle) ((Rectangle) clip).clone();
clipRect.x += tx;
clipRect.y += ty;