Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Clipping area
Clipping area [message #249084] Sun, 31 May 2009 23:39 Go to next message
Alptug is currently offline Alptug
Messages: 3
Registered: July 2009
Junior Member
Hi,

I am new to the group. I hope I do not violate any rules. Here is my
question:

I know that for org.eclipse.draw2d.graphics you can set the clipping area
by method setClip(Rectangle r), no painting occurs outside the rectangle r.

What I would like to do is to set a clipping area so that no drawing
inside this area will occur, only the outside of the specified rectangle
(or path) will be drawn.

Thanks
Re: Clipping area [message #249159 is a reply to message #249084] Thu, 04 June 2009 05:22 Go to previous message
Alex Boyko is currently offline Alex Boyko
Messages: 200
Registered: July 2009
Senior Member
Hi
You could try to use setClip(Path) construct the path as a "union" of two
paths.
However, I'd rather paint whatever you're trying to paint differently.

Cheers,
Alex
Previous Topic:Editor (GraphicalEditorWithFlyoutPalette ) won't open
Next Topic:Drawing outside a Figure's bounds
Goto Forum:
  


Current Time: Tue Sep 23 14:29:44 GMT 2014

Powered by FUDForum. Page generated in 0.08805 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software