|Re: table-style graph [message #1008001 is a reply to message #1007829]
||Fri, 08 February 2013 14:58
| Zoltan Ujhelyi
Registered: July 2015
well, it really depends. If the grid layout works almost perfectly, then it would make sense to either inherit from it, or just simply copy and modify it (at least if its EPL licence works for you well).
In our case, we started with simply adding a comparator to those nodes, as the grid layout simply adds the elements right next to each other as long as a column is filled. However, if you need to leave some places out, then you have to change the implementation as well. But the GridLayout implementation is really straightforward, so I suggest looking at it and adapting as needed.
However, if you have a better (but really different) implementation in mind, then it seems better to start with implementing LayoutAlgorithm directly.
Powered by FUDForum
. Page generated in 0.02159 seconds