Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » layout manager troubles
layout manager troubles [message #172162] Wed, 16 March 2005 20:57 Go to next message
Eclipse UserFriend
Originally posted by: jojo.virtutech.com

Hi,

I'm trying to implement my own layout manager for a very specialized
situation. Things work nicely all the way to the point where I do

child.setBounds(newBounds);

on each of the figure's children in the layout() method. I would have
expected that would be all there would be to it, but nothing happens --
none of the children become visible on the screen. I've tried to step
through the setBounds() method, but I can't find anything obviously
wrong; the setBounds() ends up in queuing a dirty-region which seems
reasonable enough.

If anybody has a clue as to what I've forgotten, I'd appreciate the help.

/Jesper
Re: layout manager troubles [message #172170 is a reply to message #172162] Wed, 16 March 2005 21:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jojo.virtutech.com

Jesper Eskilson wrote:
> Hi,
>
> I'm trying to implement my own layout manager for a very specialized
> situation. Things work nicely all the way to the point where I do
>
> child.setBounds(newBounds);
>
> on each of the figure's children in the layout() method. I would have
> expected that would be all there would be to it, but nothing happens --
> none of the children become visible on the screen. I've tried to step
> through the setBounds() method, but I can't find anything obviously
> wrong; the setBounds() ends up in queuing a dirty-region which seems
> reasonable enough.
>
> If anybody has a clue as to what I've forgotten, I'd appreciate the help.

Following the laws of asking for help in newsgroups, I just realized
that the none of the child figures had any layout-managers. Duh.

Sorry for wasting your time.

--
/Jesper
Re: layout manager troubles [message #172392 is a reply to message #172170] Thu, 17 March 2005 21:58 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Figures have 0 size now. This is different from the previously release when
figures had some strange hard-coded size. The purpose was to make adding a
figure more efficient.

Some figures have preferred sizes without layoutmanagers, such as Label.

"Jesper Eskilson" <jojo@virtutech.com> wrote in message
news:4238A246.9090700@virtutech.com...
> Jesper Eskilson wrote:
>> Hi,
>>
>> I'm trying to implement my own layout manager for a very specialized
>> situation. Things work nicely all the way to the point where I do
>>
>> child.setBounds(newBounds);
>>
>> on each of the figure's children in the layout() method. I would have
>> expected that would be all there would be to it, but nothing happens --
>> none of the children become visible on the screen. I've tried to step
>> through the setBounds() method, but I can't find anything obviously
>> wrong; the setBounds() ends up in queuing a dirty-region which seems
>> reasonable enough.
>>
>> If anybody has a clue as to what I've forgotten, I'd appreciate the help.
>
> Following the laws of asking for help in newsgroups, I just realized that
> the none of the child figures had any layout-managers. Duh.
>
> Sorry for wasting your time.
>
> --
> /Jesper
Previous Topic:checkbox in GEF treeview
Next Topic:FigureCanvas vs. ScrollPane: a question
Goto Forum:
  


Current Time: Fri Apr 26 02:16:45 GMT 2024

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

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

Back to the top