|
Re: Moving figures leaves bits of the figure in the old location [message #185396 is a reply to message #185281] |
Fri, 24 June 2005 17:34 |
Bradley Schmerl Messages: 26 Registered: July 2009 |
Junior Member |
|
|
Discount this. After beating my head against this for a while, I
discovered that another part of my code was calling setBounds and
overriding the bounds with the just the size of selection. Once sorted
out, it all works ok.
Apologies for any inconvenience,
Bradley.
Bradley Schmerl wrote:
> Hi:
>
> I have a figure that subclasses Shape. I have options for the shape to
> be replicated (or shadowed) and also to draw a string that is below the
> shape. However, I want the selection handles to just go around the shape
> (not the shadow or string). So, I have an arrangement where I have the
> following (+s indicate where the selection and resize handles should go).
>
> +-------+--------+_
> | ||
> + +|
> | ||
> +-------+--------+|
> |________________|
> Some String
>
> I am having getBounds return the bounds of the entire figure (including
> shadow and string) and implement HandleBounds and getHandleBounds to
> give me the placement of the +s and selection box.
>
> Now, when I move around the figure, in some instances I get parts of the
> figure still appearing on the canvas. It is like the update manager is
> only recognizing that the rectangle of getHandleBounds has been made
> dirty. I've attached a screenshot to show the effect.
>
> First of all, is this the proper way to implement something like this?
> Secondly, how do I fix the problem?
>
> This occurs in Eclipse 3.0.2 using GEF 3.0.1 and Eclipse 3.1RC3 and
> GEF3.1RC3.
>
> Thanks,
> Bradley.
|
|
|
Powered by
FUDForum. Page generated in 0.03730 seconds