Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Layout issues (Read 2020 times)
dittu
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 20
Joined: Feb 6th, 2015
Layout issues
Mar 29th, 2015 at 1:51am
Print Post  
Hi Stoyo,

I am fetching a few nodes and links and generating diagram using layered layout.
1.) clicking further on leaf nodes fetches more nodes. But while applying those additional nodes and applying layout algorithm everything messes up. Is there a way to keep all the existing nodes constant i.e at their original position and just add the new nodes in layered layout and all other layouts?

2.) User is given an option to select display option from all available layouts, i.e.layered/tree/spring/fractal/borderedtree, but rearranging using selected layouts doesn't honour node level/distance and everything goes for a toss. And every time for a same layout selected randomly, representation is different. Sometimes edge itself is not there and sometimes it to big. Maybe it also considers how the nodes/links were displayed previously. Any solution to this?

Thank you in advance for your cooperation.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Layout issues
Reply #1 - Mar 30th, 2015 at 7:57am
Print Post  
Hi,

1) There's no support for arranging only subset of the diagram, unless it's container's content. So you could add the newly fetched nodes to a temporary ContainerNode, move the container where you want it placed relatively to some parent node, call container.arrange(layout), and remove the container.

2) I think there's some randomization in SpringLayout, and it depends on starting positions of nodes too, so you won't be able to get same arrangements from it after applying it different starting layouts. For level distances, check if you are setting correct fields (layerDistance vs levelDistance in Layered/TreeLayout). As for nodeDistance in same layer - it cannot be exactly the same between tree/layered layouts because LayeredLayout needs to make space for links that cross a layer, so it acts more like min-distance there.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint