Skip to main content



      Home
Home » Eclipse Projects » GEF » How does the model get informed about outcome of layout algorithm?
How does the model get informed about outcome of layout algorithm? [message #238161] Wed, 29 August 2007 11:07 Go to next message
Eclipse UserFriend
Hi there,

I have the following problem: i have given figure A in a XYLayout and want
to create in a command another figure with a border layout such that
figure A lies in the top left corner in the center figure of the border
layout. how can i do that? in particular, i think that i have to know
somehow the width of the left figure computed in the border layout. how
does the model get this information?

thanks for any hep
Luzi
Re: How does the model get informed about outcome of layout algorithm? [message #238172 is a reply to message #238161] Thu, 30 August 2007 03:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alexjaquet.gmail.com

If you add a figure inside another one or you have a contener figure you
can play with the actual bounds of the figure getBounds().width give the
information you needs.

Luzi a écrit :
> Hi there,
>
> I have the following problem: i have given figure A in a XYLayout and
> want to create in a command another figure with a border layout such
> that figure A lies in the top left corner in the center figure of the
> border layout. how can i do that? in particular, i think that i have to
> know somehow the width of the left figure computed in the border layout.
> how does the model get this information?
>
> thanks for any hep
> Luzi
>
>
>
Re: How does the model get informed about outcome of layout algorithm? [message #238197 is a reply to message #238172] Fri, 31 August 2007 05:38 Go to previous message
Eclipse UserFriend
The problem is that I have no access to the figure from the command
(model) and that the figure is not yet here (I need to know the bounds of
the figure I'm creating in my figure).

Luzi
Previous Topic:FigureCanvas and automatic Scrollbars
Next Topic:org.eclipse.gef.ui.parts.TreeViewer and DND
Goto Forum:
  


Current Time: Thu Jul 24 19:46:24 EDT 2025

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

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

Back to the top