The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

removing the circle

Posted by vijay on January 07, 2002 at 7:10 AM

may be this way you can do it.

at the end of cut operation.

set the grahics clipping area to the area of the circle
and just repaint the clipping area by setting the appropriate color.

get the bounds

strore the actual cllipig region - limits

g.setClip(x,y,width,height);
g.setColor(requiredColor);
g.repaint();
g.setClip(previousClipping region)

if you use graphics2D - then you can also create shapes
and set the clip to the shape
g.setClip(shape)

hope this helps !!!




Replies:
  • Thanks! Eduardo January 09, 2002 at 7:22 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us