|Re: How to route Connections around nodes instead of across (GEF5) [message #1770384 is a reply to message #1770362]
||Thu, 10 August 2017 15:42
|| Matthias Wienand
Registered: March 2015
as you already know, the OrthogonalRouter does not avoid obstacles. It does only insert way points so that all segments between way points are either horizontal or vertical.
GEF 5.0.0 does not provide such functionality out-of-the-box, however, GEF Legacy Draw2D provides ShortestPathRouter, which does exactly that: http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.draw2d.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fdraw2d%2Fgraph%2FShortestPathRouter.html
As an alternative, you could let a layout algorithm compute the way points so that obstacles are avoided, e.g. using Graphviz or ELK (Eclipse Layout Kernel), which might be a good idea, anyway.
[Updated on: Fri, 11 August 2017 14:11]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02000 seconds