|How to get the actual size of the Figure whose children can been added? [message #244868]
||Tue, 12 August 2008 01:15
Originally posted by: wizardishappy.gmail.com|
I only use draw2D while not use gef.
I have a Figure and on it, the user can dynamically add children figures and move the children figures.So I have to handle scroll issue.
Now I use a ScrolledComposite to hold a Canvas and put my root Figure on it.
My solution to calculate the actual size of the root figure when add a new child or move a child and call the canvas.setBound to adjust the scroll.
My question is how to get the actual size of the root figure?
I had went through all the method of the figure and found no method can solve this.. :(
So do I have to calculate all the children figures every time?
Powered by FUDForum
. Page generated in 0.01483 seconds