After I load up my diagram and perform the heirarchy layout I've added code to move everything to the center. I calculate the momement vector and then apply it to all shapes and line segments. The only problem is my line segments get all messed up. I assume it is because when the shape moves all of the line segments change anyhow.
So my next try I simply ignored the lines and moved the shapes. The problem is the lines still do not come out correctly. Can someone please help me? I'm using connectors as my lines.
Here are before/after screens to help you understand:
http://www.visionaryonline.com/before.png
http://www.visionaryonline.com/after.png
Thanks,
-jv