ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
if ((getViewer().getControl().getStyle() & SWT.MIRRORED ) == 0)
cLayer.setAntialias(SWT.ON);
if (getLogicDiagram().getConnectionRouter().equals(LogicDiagram.ROUTER_MANUAL)) {
AutomaticRouter router = new FanRouter();
router.setNextRouter(new BendpointConnectionRouter());
cLayer.setConnectionRouter(router);
} else if (getLogicDiagram().getConnectionRouter().equals(LogicDiagram.ROUTER_MANHATTAN))
cLayer.setConnectionRouter(new ManhattanConnectionRouter());
else
cLayer.setConnectionRouter(new ShortestPathConnectionRouter(getFigure()));