Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Layered Layout and NodeDistance ? (Read 1495 times)
yrauma
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Layered Layout and NodeDistance ?
Aug 23rd, 2010 at 3:57pm
Print Post  
Hello Stoyan,

Im trying to tweak my main Layout used to rearrange all my diagrams.

I have a big problem with the NodeDistance property of the LayeredLayout. It does not seems to make any difference whatever the number I put....

I need to put more space between my nodes... LayerDistance works but its not the one I need.

Do you have any idea why its not working ? or maybe any other property I could use ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layered Layout and NodeDistance ?
Reply #1 - Aug 23rd, 2010 at 6:16pm
Print Post  
Hi Amaury,

This distance is applied to the more dense layers in the graph. Their neighbors in adjacent sparse layers are centered above or below them to make links shorter as shown here:


If you need to use the same distance in all layers, you can loop over the nodes after arranging the diagram and adjust their Bounds horizontally, but the result will be uglier in most cases, e.g. something like this but on a larger scale:


Also if there are several unconnected subgraphs, the closest nodes in two adjacent subgraphs will be at Layout.Margins distance from each other instead of NodeDistance.

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


I love YaBB 1G - SP1!

Posts: 61
Joined: Mar 28th, 2010
Re: Layered Layout and NodeDistance ?
Reply #2 - Aug 23rd, 2010 at 7:44pm
Print Post  
MARGIN !

that was the property I needed.
that does the job just fine.

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