private void convertFlowLayout( final YExternalNetElement incomingElement, final YExternalNetElement outgoingElement, final YNet net) { YNetLayout netLayout = getContext().getLayout().getNetLayout(net.getID()); YFlowLayout flowLayout = new YFlowLayout(incomingElement, outgoingElement, getContext().getNumberFormat()); flowLayout.setBounds(convertShapeBounds(getShape())); flowLayout.setLineStyle(convertLineStyle(getShape())); flowLayout.setSourcePort(convertPort(incomingElement, edgeShape.getDockerAt(0))); flowLayout.setPoints(convertDockers(edgeShape.getDockersReadOnly())); flowLayout.setTargetPort( convertPort(outgoingElement, edgeShape.getDockerAt(edgeShape.getNumDockers() - 1))); netLayout.addFlowLayout(flowLayout); }