enforce node position n gridlayout [message #1007942] |
Fri, 08 February 2013 06:06  |
Eclipse User |
|
|
|
Hello all,
Could you help me as how to enforce the position of a certain node in a certain column and row (i.e. cell) in a GridlayoutAlgoritm?
I had got valuable help [message #1007779]
Thanks,
Mok
|
|
|
|
|
Re: enforce node position n gridlayout [message #1010185 is a reply to message #1009786] |
Sat, 16 February 2013 15:25  |
Eclipse User |
|
|
|
Hi,
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.
Cheers,
Zoltán
|
|
|
Powered by
FUDForum. Page generated in 0.04138 seconds