Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to get the actual size of the Figure whose children can been added?
How to get the actual size of the Figure whose children can been added? [message #244868] Mon, 11 August 2008 21:15
Eclipse User
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?
TIA.
Previous Topic:Background image in rootEditPart
Next Topic:GEF editor background image
Goto Forum:
  


Current Time: Thu Apr 24 06:41:21 EDT 2014

Powered by FUDForum. Page generated in 0.03043 seconds