Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » "Empty figure" for GridLayout
"Empty figure" for GridLayout [message #247692] Wed, 11 March 2009 09:05 Go to next message
Roger Stocker is currently offline Roger StockerFriend
Messages: 16
Registered: July 2009
Junior Member
Hi

I have a large diagram showing tiny figures in a grid.
Since I did not find any other way of skipping grid cells when adding
children to the parent figure I tried to use simple empty instances of
Figure for these cells. Now I found that the memory consumption is huge,
since my grid is quite large (around 2000x500 cells).

Are there better way's to produce empty cells inside a GridLayout which
have a smaller footprint than using Figure instances?

What should be done to increase layouting performance? I already use equal
sized grid columns and don't use GridData-Constraints, but it really takes
a long time to calculate the preferred size for my huge grid. Any
suggestions?
Is it better to explicitly set the preferred size in the constructor or
will the invalidation which is then inherent decrease overall performance?

Thanks a lot!
Re: "Empty figure" for GridLayout [message #247700 is a reply to message #247692] Wed, 11 March 2009 13:08 Go to previous message
Madhu Samuel is currently offline Madhu SamuelFriend
Messages: 199
Registered: July 2009
Senior Member
Roger wrote:

> Hi

> I have a large diagram showing tiny figures in a grid.
> Since I did not find any other way of skipping grid cells when adding
> children to the parent figure I tried to use simple empty instances of
> Figure for these cells. Now I found that the memory consumption is huge,
> since my grid is quite large (around 2000x500 cells).

> Are there better way's to produce empty cells inside a GridLayout which
> have a smaller footprint than using Figure instances?

> What should be done to increase layouting performance? I already use equal
> sized grid columns and don't use GridData-Constraints, but it really takes
> a long time to calculate the preferred size for my huge grid. Any
> suggestions?
> Is it better to explicitly set the preferred size in the constructor or
> will the invalidation which is then inherent decrease overall performance?

> Thanks a lot!

Hello Roger,

Can't you use XYLayout instead of GridLayout?

If that is not possible, why don't you use a single instance of the
'empty' figure in all the places you need to fill with dummy figures.

Regards,
Madhu


Previous Topic:Accessibility questions on GEF editors
Next Topic:Native SWT drawing on Canvas with LWS
Goto Forum:
  


Current Time: Sat Apr 27 02:01:36 GMT 2024

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

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

Back to the top