Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Change Layout and keep positions (Read 2847 times)
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Change Layout and keep positions
Feb 18th, 2009 at 9:15am
Print Post  
Hi,
I want to arrange the layout diagram by treelayout,
but I want the nodes to keep their positions.
How can I do that?
thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change Layout and keep positions
Reply #1 - Feb 18th, 2009 at 9:26am
Print Post  
Hi,

You can only keep the position of the root node. Set TreeLayout.KeepRootPosition = true before calling Arrange().

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: Change Layout and keep positions
Reply #2 - Feb 18th, 2009 at 9:43am
Print Post  
Thanks,
but what about the other nodes?
I need to keep their positions,
and arrange only the links.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change Layout and keep positions
Reply #3 - Feb 18th, 2009 at 10:06am
Print Post  
Try the TreeLayout.UpdateLink method if you need only to set the style of a link to match the rest of the tree links.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
tzippy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Jan 11th, 2009
Re: Change Layout and keep positions
Reply #4 - Feb 18th, 2009 at 11:15am
Print Post  
Is there an option to define the treelayout to ignore some links?
I want the links to be aranged, but with no effect on the nodes.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Change Layout and keep positions
Reply #5 - Feb 18th, 2009 at 11:28am
Print Post  
Try calling UpdateLink in a loop. You could arrange only a part of the tree by calling Arrange(DiagramItemCollection), but the collection must contains both nodes and links.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint