Hi,
I have 3 questions:
- Is it possible to reduce the time of the AnnealLayout and TriangleLayout ? It takes a long time and I don't have seen any iteration parameter ?
- I have a bug with the GridLayout (with 500 nodes and 4500 links):
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeForceCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at com.mindfusion.common.ExtendedArrayList.sort(Unknown Source)
at com.mindfusion.diagramming.QuickRouter.a(Unknown Source)
at com.mindfusion.diagramming.QuickRouter.RouteLinks(Unknown Source)
at com.mindfusion.diagramming.Diagram.routeAllLinks(Unknown Source)
at com.mindfusion.diagramming.GridLayout.arrange(Unknown Source)
com.mindfusion.diagramming.GridLayout gridLayout = new com.mindfusion.diagramming.GridLayout();
gridLayout.setGridSize(100);
gridLayout.setIterations(19);
gridLayout.setKeepGroupLayout(true);
gridLayout.setRandomSeed(0);
gridLayout.setXGap(12.5f);
gridLayout.setYGap(12.5f);
gridLayout.arrange(diagram);
One remark: I can have 2 links between 2 nodes.
- And one last question (not related to layouts): is it possible to have the nodes always displayed above the links ?
Thanks