Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to arrange new node preserving previous layout (Read 3327 times)
Raju
Guest


How to arrange new node preserving previous layout
Jan 17th, 2006 at 4:25am
Print Post  
I am arranging nodes in flowchart using Spring Layout. When I add new node programatically and call arrange method of layout, it arranges all other node. But i want previous node position sholud not be disturbed. So I set Igonre layout property of nodes to true. But this causes overlapping of new node.
  Suggest some solution.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to arrange new node preserving previous la
Reply #1 - Jan 17th, 2006 at 5:56am
Print Post  
I do not think that's possible. The SpringLayout simulates physical repulsion or attraction between nodes, depending on whether they are linked. If some nodes are ignored, they will not have any effect on the not-ignored ones so they will probably overlap.

You might try placing the new node somewhere outside the current graph boundaries and run the layout for only a few iterations, e.g. 5-10. That will move all other nodes too but should have a minimal effect on them.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint