Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsOptimizing/making shorter connections in a graph
https://www.eclipse.org/forums/index.php/mv/msg/1073010/1717497/#msg_1717497
Please, see the attached image.
Is there any setting in ELK, that could make the connection in the red rectangle shorter? We have many of this kind connections in our graph.
Thanks for your help! ]]>Mindaugas Laganeckas2015-12-14T11:43:57-00:00Re: Optimizing/making shorter connections in a graph
https://www.eclipse.org/forums/index.php/mv/msg/1073010/1717833/#msg_1717833
A post above was my first in eclipse forum. I was so exited about it so I forgot my manners
The ELK version: 0.1.0.201512040302
We are using Graphiti: 0.12.1.v20150916-0905
We have to make changes to ELK - Graphiti integration. The only change:
@Override
protected KNode createNode(final LayoutMapping<PictogramElement> mapping, final KNode parentNode, final Shape shape) {
final KNode node = super.createNode(mapping, parentNode, shape);
final KShapeLayout nodeLayout = node.getData(KShapeLayout.class);
nodeLayout.setProperty(LayoutOptions.DIRECTION, Direction.DOWN);
nodeLayout.setProperty(LayoutOptions.LAYOUT_HIERARCHY, true);
return node;
}
The rest of the configuration (layout algorithm etc) is default.
Hopefully, this time all information is available.
Thanks!]]>Mindaugas Laganeckas2015-12-17T07:47:53-00:00Re: Optimizing/making shorter connections in a graph
https://www.eclipse.org/forums/index.php/mv/msg/1073010/1719514/#msg_1719514
sorry for the late reply. Try changing the node placement algorithm on all parent nodes by setting the following property:
Check if that helps.]]>Christoph Daniel Schulze2016-01-08T14:27:07-00:00Re: Optimizing/making shorter connections in a graph
https://www.eclipse.org/forums/index.php/mv/msg/1073010/1719920/#msg_1719920
Thanks for your help!