Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question about Layout (Read 1182 times)
chris
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 57
Joined: Feb 1st, 2008
Question about Layout
Oct 30th, 2009 at 7:51pm
Print Post  
Hi Stoyan,

I have some anchor points for each node and each link should be connected to two specified anchor points.

After I create a SpringLayout and call Arrange method to layout my diagram, some properties of the links are changed. For example, the links don't connect to anchor points anymore.

What should I do to keep all the properties of the links unchanged after Arrange method is called?

Thanks.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Question about Layout
Reply #1 - Nov 1st, 2009 at 9:51am
Print Post  
Hi Chris,

You could set layout.Anchoring = Anchoring.Keep. However, SpringLayout doesn't try to place nodes at positions that would allow connected anchor points to end up closer to one another, and you might get some links going over their incident nodes in order to keep their original anchor points.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint