Label to connector disappears [message #147644] |
Fri, 13 August 2004 15:46 |
Eclipse User |
|
|
|
Originally posted by: none.bphnx.com
This is in reference to the same subject "Label to connector disappears"
posted by Khurrum on Thu, 1 Apr 2004 10:31:42.
I have the same problem, which is described by "Khurrum":
"The text "Connector label text" appears fine just below the connector
line. When I move my source or target, sometimes half the text disappears
but
when I select the connector the text appears. Can somebody help me with
the problem."
I have trouble understanding the solution that was posted:
"You cannot relocate the figure during painting. The connections bounds
have
already been calculated, and they will clip the child.
Instead, use a DelegatingLayoutManager on the connection. This will get
tied in before the new bounds are calculated."
The GEF docs state that the DelegatingLayout "is set as the default
layout." So how does this help?
Randy (or someone who knows this problem) could you please explain?
many thanks,
B
|
|
|
Re: Label to connector disappears [message #147652 is a reply to message #147644] |
Fri, 13 August 2004 16:48 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The layout is set by default, but it only acts on children with locators as
constraints. If I recall, the client was placing the label inside the paint
method, at which point the Graphics was already clipped to the bounds prior
to moving the label. The locator will be invoked during validate() which
occurs prior to all painting.
"bandrews" <none@bphnx.com> wrote in message
news:cfinpe$pml$1@eclipse.org...
> This is in reference to the same subject "Label to connector disappears"
> posted by Khurrum on Thu, 1 Apr 2004 10:31:42.
>
> I have the same problem, which is described by "Khurrum":
>
> "The text "Connector label text" appears fine just below the connector
> line. When I move my source or target, sometimes half the text disappears
> but
> when I select the connector the text appears. Can somebody help me with
> the problem."
>
> I have trouble understanding the solution that was posted:
>
> "You cannot relocate the figure during painting. The connections bounds
> have
> already been calculated, and they will clip the child.
> Instead, use a DelegatingLayoutManager on the connection. This will get
> tied in before the new bounds are calculated."
>
> The GEF docs state that the DelegatingLayout "is set as the default
> layout." So how does this help?
>
> Randy (or someone who knows this problem) could you please explain?
>
> many thanks,
>
> B
>
|
|
|
Powered by
FUDForum. Page generated in 0.03498 seconds