[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: clipping problem
|
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@xxxxxxxxxxx> wrote in message
news:d1uk4p$eut$1@xxxxxxxxxxxxxxxxxxx
> 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
>
>