Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cannot draw Cascading links (Read 3248 times)
mandz
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 28
Joined: Mar 12th, 2013
Cannot draw Cascading links
Apr 17th, 2013 at 4:14am
Print Post  
I want to use the cascading shape for my links.  I'm setting it in 2 places.  Once on the diagram before adding any nodes or links (diagram.LinkShape) and again for each link (link.Shape).  I'm also arranging the nodes automatically (layout.Arrange(diagram).  Problem is that the nodes are shown with the default Polyline.  Though newly added nodes (drawn on the surface) are drawn with Cascading lines.  How can I get the original links drawn dynamically to also display as cascading lines?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cannot draw Cascading links
Reply #1 - Apr 17th, 2013 at 7:54am
Print Post  
Layout algorithms change the link shape to a value corresponding to their own properties such as LinkType in LayeredLayout or RoundedLinks in OneWayLayout. If the layout classes you are using do not support cascading links, you will have to loop over diagram.Links after calling Arrange and reset link.Shape back to Cascading.

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


I Love MindFusion!

Posts: 28
Joined: Mar 12th, 2013
Re: Cannot draw Cascading links
Reply #2 - Apr 17th, 2013 at 11:19pm
Print Post  
Thanks Stoyan, this did the trick:

Code
Select All
layout.LinkType = LayeredLayoutLinkType.Cascading; 

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