|Re: enforce node position n gridlayout [message #1010185 is a reply to message #1009786]
||Sat, 16 February 2013 15:25
| Zoltan Ujhelyi
Registered: July 2009
it seems I wasn't clear about my intentions with the comparator. I was asking to try to use the GraphViewer#setComparator method, as it will order the nodes before they are added to the algorithm (at least if I am not mistaken).
Of course, a layout algorithm may also offer a comparator support, but in that case it is their responsibility to handle the data. The GridLayoutAlgorithm does not do this, but relies on the external ordering created by the GraphViewer before.
I hope, it will work now.
Powered by FUDForum
. Page generated in 0.01536 seconds