Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to be notified when layout is done
How to be notified when layout is done [message #161018] Wed, 08 December 2004 20:25 Go to next message
Cyril Chéné is currently offline Cyril ChénéFriend
Messages: 19
Registered: July 2009
Location: France
Junior Member
Hello

I need to do some processing using the figures coordinates.

So I would like to know I can be "notified" when the layout of a diagram=
=

(displayed on a GraphicalEditorWithPalette) has been applied and is =

finished (i.e. the layout of the diagram child figures and the layout of=
=

each child figure... have been applied)

Any idea ?

Thanks in advance

Cyril
Re: How to be notified when layout is done [message #161126 is a reply to message #161018] Thu, 09 December 2004 15:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

In the HEAD stream, we have added:
UpdateManager#runWithUpdate(Runnable runme)

You could extend DeferredUpdateManager in the 3.0 base and attach a runnable
which runs after performUpdate or validateFigures.

"Cyril Chene" <cchene@genigraph.fr> wrote in message
news:opsiphofcyihagx7@sirius.graphtoulouse1.genigraph.fr...
Hello

I need to do some processing using the figures coordinates.

So I would like to know I can be "notified" when the layout of a diagram
(displayed on a GraphicalEditorWithPalette) has been applied and is
finished (i.e. the layout of the diagram child figures and the layout of
each child figure... have been applied)

Any idea ?

Thanks in advance

Cyril
Re: How to be notified when layout is done [message #161142 is a reply to message #161126] Thu, 09 December 2004 16:03 Go to previous message
Cyril Chéné is currently offline Cyril ChénéFriend
Messages: 19
Registered: July 2009
Location: France
Junior Member
Thanks for your answer

Eventually, I found another solution that better suited to my needs:

I forced the layout manager of the diagram child figures to do its job =

with the Figure.validate() method. Thus, the children figures of the =

diagram children have their bounds computed when I do my job.



Le Thu, 9 Dec 2004 10:23:16 -0500, Randy Hudson <none@us.ibm.com> a =E9c=
rit :

> In the HEAD stream, we have added:
> UpdateManager#runWithUpdate(Runnable runme)
>
> You could extend DeferredUpdateManager in the 3.0 base and attach a =

> runnable
> which runs after performUpdate or validateFigures.
>
> "Cyril Chene" <cchene@genigraph.fr> wrote in message
> news:opsiphofcyihagx7@sirius.graphtoulouse1.genigraph.fr...
> Hello
>
> I need to do some processing using the figures coordinates.
>
> So I would like to know I can be "notified" when the layout of a diagr=
am
> (displayed on a GraphicalEditorWithPalette) has been applied and is
> finished (i.e. the layout of the diagram child figures and the layout =
of
> each child figure... have been applied)
>
> Any idea ?
>
> Thanks in advance
>
> Cyril
>
>
Previous Topic:How to create and edit a layer?
Next Topic:Line Figure with a small circle at both end
Goto Forum:
  


Current Time: Fri Nov 08 23:16:52 GMT 2024

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

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

Back to the top