Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Container Question
Container Question [message #150768] Tue, 14 September 2004 05:15 Go to next message
Eclipse UserFriend
Originally posted by: psirr.earthlink.net

I have a figure used as a container (as the circuit is in the logic
example). The container has the requirement that it must resize when any of
its children are moved or resized. So at all times it shows completely it's
children with no clipping. Any one have any examples of this? Seems like a
layout manager could help me here, but I'm not sure how.

Thanks!
Re: Container Question [message #150822 is a reply to message #150768] Tue, 14 September 2004 16:01 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Your layout manager should override calculatePreferredSize(), and return a
size such that all its children would be visible. The union of children's
bounds will give you the client area.

"Patrick" <psirr@earthlink.net> wrote in message
news:ci5uid$o2b$1@eclipse.org...
> I have a figure used as a container (as the circuit is in the logic
> example). The container has the requirement that it must resize when any
of
> its children are moved or resized. So at all times it shows completely
it's
> children with no clipping. Any one have any examples of this? Seems like
a
> layout manager could help me here, but I'm not sure how.
>
> Thanks!
>
>
Re: Container Question [message #150833 is a reply to message #150768] Tue, 14 September 2004 18:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Try settings a circuit's width/height to -1, and then moving its children
around.

"Patrick" <psirr@earthlink.net> wrote in message
news:ci5uid$o2b$1@eclipse.org...
> I have a figure used as a container (as the circuit is in the logic
> example). The container has the requirement that it must resize when any
of
> its children are moved or resized. So at all times it shows completely
it's
> children with no clipping. Any one have any examples of this? Seems like
a
> layout manager could help me here, but I'm not sure how.
>
> Thanks!
>
>
Re: Container Question [message #151164 is a reply to message #150833] Thu, 16 September 2004 01:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: psirr.earthlink.net

I have a freeform layout on the container. It doesn't appear that setting
the width/height is doing anything. As for overriding
calculatePreferredSize() it isn't getting called. Any ideas? Does the
freeform layout shortcircuit any of these calls?

"Randy Hudson" <none@us.ibm.com> wrote in message
news:ci7do9$i2o$1@eclipse.org...
> Try settings a circuit's width/height to -1, and then moving its children
> around.
>
> "Patrick" <psirr@earthlink.net> wrote in message
> news:ci5uid$o2b$1@eclipse.org...
> > I have a figure used as a container (as the circuit is in the logic
> > example). The container has the requirement that it must resize when
any
> of
> > its children are moved or resized. So at all times it shows completely
> it's
> > children with no clipping. Any one have any examples of this? Seems
like
> a
> > layout manager could help me here, but I'm not sure how.
> >
> > Thanks!
> >
> >
>
>
Re: Container Question [message #153235 is a reply to message #151164] Thu, 07 October 2004 08:39 Go to previous message
Eclipse UserFriend
Originally posted by: imran.shafiq.bmw-carit.de

I just finished doing somethng like that.

Had to write an ordered layout manager.

getprefferedsize is not called u r right!

but layout() is called whenever something is changing

so i call the getprefferedsize from there

calculate my size in the getprefferedsize

and then see if the new set size is

according to my preffered size

....

"Patrick" <psirr@earthlink.net> schrieb im Newsbeitrag
news:ciare5$vmf$1@eclipse.org...
>I have a freeform layout on the container. It doesn't appear that setting
> the width/height is doing anything. As for overriding
> calculatePreferredSize() it isn't getting called. Any ideas? Does the
> freeform layout shortcircuit any of these calls?
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:ci7do9$i2o$1@eclipse.org...
>> Try settings a circuit's width/height to -1, and then moving its children
>> around.
>>
>> "Patrick" <psirr@earthlink.net> wrote in message
>> news:ci5uid$o2b$1@eclipse.org...
>> > I have a figure used as a container (as the circuit is in the logic
>> > example). The container has the requirement that it must resize when
> any
>> of
>> > its children are moved or resized. So at all times it shows completely
>> it's
>> > children with no clipping. Any one have any examples of this? Seems
> like
>> a
>> > layout manager could help me here, but I'm not sure how.
>> >
>> > Thanks!
>> >
>> >
>>
>>
>
>
Previous Topic:Server/Environment Diagramming/Modeling
Next Topic:About running logic-example3.0.0 as run-time workbench
Goto Forum:
  


Current Time: Tue Jan 14 07:26:20 GMT 2025

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

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

Back to the top