Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tree Layout - Child node to Multiple levels link issue (Read 3015 times)
binuvc
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 46
Joined: Nov 7th, 2011
Tree Layout - Child node to Multiple levels link issue
Mar 26th, 2012 at 8:05am
Print Post  
Hi,

We were working on tree layout.

diagramLite.LinkStyle = LinkStyle.Polyline;
diagramLite.RouteLinks = true;



and on applying the tree layout


layout = new MindFusionLayout.TreeLayout();
layout.Balance = MindFusionLayout.TreeLayoutBalance.Original;
layout.KeepGroupLayout = true;
layout.Type = MindFusionLayout.TreeLayoutType.Centered;
layout.Direction = MindFusionLayout.TreeLayoutDirections.TopToBottom;
layout.LinkStyle = MindFusionLayout.TreeLayoutLinkType.Cascading3;
layout.LevelDistance = 25;
layout.NodeDistance = 25;
layout.Arrange(diagramLite);


The issue is that if we have the same node as child of nodes at multiple levels,
eg : In figure "o5" is child to both "o3" and "o4". "o4" is child to "o3".

The arranged layout looks complicated to understand.


Please advice.


Thanks

BinuVC
  

TreeLayoutIssue.jpg (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tree Layout - Child node to Multiple levels link issue
Reply #1 - Mar 26th, 2012 at 11:38am
Print Post  
Hi,

Use LayeredLayout if there are nodes with more than one parent. The graph is not a tree in that case, and TreeLayout is designed for trees.

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