Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » clipping problem
clipping problem [message #173458] Thu, 24 March 2005 13:32 Go to next message
Eclipse UserFriend
Originally posted by: koen.claerhout.advalvas.be

I have a polygon that is added the main figure.
I want to allow users to edit it by dragging the corners.

This all works, but to assist the user I want to draw circels around the
corners.
So I add circels (an ellipse figure) for each cornerpoint. these ellipses
are added to the polygon object. (I've subclassed the polygon class, to
implement this dragging and resizing).

But since the ellipses are childeren of the polygon object, they are all
clipped (partially shown) at thej bounds of the polygon. How can I solve
this problem in a simple way.

Thanks in advance
Re: clipping problem [message #173529 is a reply to message #173458] Thu, 24 March 2005 16:12 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
You should do this by changing the type of handles that are drawn instead.
In the logic example, when you select a part in the viewer, you see handles
(small, black squares) appear around it that allow you to change that part's
bounds. These handles are on a separate layer and can exist outside the
bounds of the figure they are handling. You should just change the types of
handles that are drawn (to circles in your case). I believe it's done in
ResizableEditPolicy.

"Koen" <koen.claerhout@advalvas.be> wrote in message
news:d1uk4p$eut$1@news.eclipse.org...
> I have a polygon that is added the main figure.
> I want to allow users to edit it by dragging the corners.
>
> This all works, but to assist the user I want to draw circels around the
> corners.
> So I add circels (an ellipse figure) for each cornerpoint. these ellipses
> are added to the polygon object. (I've subclassed the polygon class, to
> implement this dragging and resizing).
>
> But since the ellipses are childeren of the polygon object, they are all
> clipped (partially shown) at thej bounds of the polygon. How can I solve
> this problem in a simple way.
>
> Thanks in advance
>
>
Previous Topic:snapping GraphicalEditParts
Next Topic:How to activate copy, paste, cut
Goto Forum:
  


Current Time: Thu Apr 25 17:43:24 GMT 2024

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

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

Back to the top