Skip to main content



      Home
Home » Eclipse Projects » GEF » Clipping area
Clipping area [message #249084] Sun, 31 May 2009 19:39 Go to next message
Eclipse UserFriend
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 01:22 Go to previous message
Eclipse UserFriend
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: Thu Mar 27 04:04:51 EDT 2025

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

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

Back to the top