Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Draw nodes in the same locations (Read 2607 times)
Selim
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Apr 23rd, 2012
Draw nodes in the same locations
Apr 23rd, 2012 at 11:42pm
Print Post  
Hi,

It seems every time Layout.Arrange gets called, the nodes get placed in an arbitrary position. Is there a way to specify the nodes locations so it does not always randomize their positions?

Thank you
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Draw nodes in the same locations
Reply #1 - Apr 24th, 2012 at 5:51am
Print Post  
Hi,

What layout class are you using? The ones that include randomization usually expose Randomize and/or RandomSeed properties - set Randomize to false or RandomSeed to a fixed value to get the same layout at each call to Arrange. If you are using SpringLayout, you can set node.LayoutTraits[SpringLayoutTraits.Frozen] to keep a node at its current position.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Selim
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Apr 23rd, 2012
Re: Draw nodes in the same locations
Reply #2 - Apr 24th, 2012 at 2:44pm
Print Post  
That did it!

Thanks a lot
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint