mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 13:01:11 +08:00
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:
parent
505ce70d3f
commit
2e22d9b885
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user