|
Re: "Empty figure" for GridLayout [message #247700 is a reply to message #247692] |
Wed, 11 March 2009 13:08 |
Madhu Samuel 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
Regards,
Madhu
http://eclipsebible.com
|
|
|
Powered by
FUDForum. Page generated in 0.03666 seconds