Skip to main content


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] Tue, 12 August 2008 01:15
Eclipse UserFriend
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: Sat Apr 27 04:05:22 GMT 2024

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

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

Back to the top