[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[gef-dev] FanRouter and ShortestPathConnectionRouter together
|
Hello,
is there a way to use FanRouter and ShortestPathConnectionRouter together?
Because after using the routing of ShortestPathConnectionRouter I still have
connections between the same nodes which are overlapping.
If I use the to routers together
ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
FanRouter fanRouter = new FanRouter();
ShortestPathConnectionRouter router = new
ShortestPathConnectionRouter(getFigure());
fanRouter.setNextRouter(router);
cLayer.setConnectionRouter(fanRouter);
I'll get the following stacktrace:
java.lang.IndexOutOfBoundsException: Index: -1, Size: 0
at org.eclipse.draw2d.geometry.PointList.getPoint(PointList.java:183)
at
org.eclipse.draw2d.ConnectionLocator.getLocation(ConnectionLocator.java:120)
at org.eclipse.draw2d.ArrowLocator.relocate(ArrowLocator.java:42)
at org.eclipse.draw2d.DelegatingLayout.layout(DelegatingLayout.java:71)
at org.eclipse.draw2d.Figure.layout(Figure.java:928)
at
org.eclipse.draw2d.PolylineConnection.layout(PolylineConnection.java:156)
at org.eclipse.draw2d.Figure.validate(Figure.java:1604)
at org.eclipse.draw2d.Figure.validate(Figure.java:1606)
at org.eclipse.draw2d.Figure.validate(Figure.java:1606)
at org.eclipse.draw2d.Figure.validate(Figure.java:1606)
at org.eclipse.draw2d.Figure.validate(Figure.java:1606)
at org.eclipse.draw2d.Figure.validate(Figure.java:1606)
at org.eclipse.draw2d.Viewport.validate(Viewport.java:357)
at org.eclipse.draw2d.Figure.validate(Figure.java:1606)
at
org.eclipse.draw2d.DeferredUpdateManager.validateFigures(DeferredUpdateManager.java:237)
Greetings Christian