Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:07 Go to next message
luciano is currently offline luciano
Messages: 16
Registered: July 2009
Junior Member
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 07:09 Go to previous messageGo to next message
Eclipse User
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 09:38 Go to previous message
luciano is currently offline luciano
Messages: 16
Registered: July 2009
Junior Member
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: Tue Sep 16 23:44:35 GMT 2014

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

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