Skip to main content



      Home
Home » Eclipse Projects » GEF » "Empty figure" for GridLayout
"Empty figure" for GridLayout [message #247692] Wed, 11 March 2009 05:05 Go to next message
Eclipse UserFriend
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 09:08 Go to previous message
Eclipse UserFriend
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 Mar 15 17:55:42 EDT 2025

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

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

Back to the top