Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Automatic resizing of parent figures
Automatic resizing of parent figures [message #229671] Wed, 24 January 2007 07:42 Go to next message
Eclipse UserFriend
Originally posted by: andras.balogh.cas.de

Dear all,

I have been using GEF for a while, and maybe I could do the task in the
subject, but I'm afraid, that it would be too hard-wired. Therefore I would
like to ask maybe you have a good article describing how to enable automatic
figure resizing if child elements were added/properties changed, etc, so
that new children and properties also get visible automaticly and no manual
resize is necessary.

(Shall I use some specific layout manager (so far i use Stack and Toolbar
and Flowlayout without constraints of course) with some LayoutConstraint?)

Thank you,
Andras
Re: Automatic resizing of parent figures [message #229688 is a reply to message #229671] Wed, 24 January 2007 08:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Sferzah.yandex.ru

Pratik Shah wrote:

> You should be updating the model with
> the new size and then the figure should be updated accordingly. If you want
> the parent to be sized so as all its children are visible, use -1, -1 as the
> parent's size in the model (that way, it doesn't change when children are
> added/removed/resized). Then your figure should use an automatic layout
> that would size it based on its children. XYLayout already does that.
Re: Automatic resizing of parent figures [message #229696 is a reply to message #229671] Wed, 24 January 2007 09:21 Go to previous messageGo to next message
Andreas Schosser is currently offline Andreas SchosserFriend
Messages: 30
Registered: July 2009
Member
Take a look at the Database Schema Diagram Editor. It shows the usage of
the Draw2D DirectedGraphLayout.
http://www.eclipse.org/articles/Article-GEF-editor/gef-schem a-editor.html

Andras Balogh write:
> Dear all,
>
> I have been using GEF for a while, and maybe I could do the task in the
> subject, but I'm afraid, that it would be too hard-wired. Therefore I would
> like to ask maybe you have a good article describing how to enable automatic
> figure resizing if child elements were added/properties changed, etc, so
> that new children and properties also get visible automaticly and no manual
> resize is necessary.
>
> (Shall I use some specific layout manager (so far i use Stack and Toolbar
> and Flowlayout without constraints of course) with some LayoutConstraint?)
>
> Thank you,
> Andras
>
>
Re: Automatic resizing of parent figures [message #230007 is a reply to message #229671] Tue, 30 January 2007 06:39 Go to previous message
Eclipse UserFriend
Originally posted by: biju_gopinathan.rediffmail.com

HI Andras ,

Did you solved this problem, if yes please post the solution here.
Thanks and Regards biju
Andras Balogh wrote:
> Dear all,
>
> I have been using GEF for a while, and maybe I could do the task in the
> subject, but I'm afraid, that it would be too hard-wired. Therefore I would
> like to ask maybe you have a good article describing how to enable automatic
> figure resizing if child elements were added/properties changed, etc, so
> that new children and properties also get visible automaticly and no manual
> resize is necessary.
>
> (Shall I use some specific layout manager (so far i use Stack and Toolbar
> and Flowlayout without constraints of course) with some LayoutConstraint?)
>
> Thank you,
> Andras
>
>
Previous Topic:toolbar visibility
Next Topic:How to update connections to sub-figures?
Goto Forum:
  


Current Time: Mon Oct 25 15:58:06 GMT 2021

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

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

Back to the top