Point srcPt = getSourcePortFig().center(); Point dstPt = getDestPortFig().center();
ModuleEdge theEdge = (ModuleEdge)getOwner(); Point sourcePoint = getSourcePortFig().center(); Point destPoint = getDestPortFig().center(); if (!theEdge.isProducerEdge()){ sourcePoint.x += 100; sourcePoint.y += 100; destPoint.x -= 100; destPoint.y -= 100; } else{ sourcePoint.x -= 100; sourcePoint.y -= 100; destPoint.x += 100; destPoint.y += 100; }
    public void computeRoute() {        Point srcPt = getSourcePortFig().center();        Point dstPt = getDestPortFig().center();        srcPt = _sourceFigNode.connectionPoint(dstPt);        dstPt = _destFigNode.connectionPoint(srcPt);        ((FigLine) _fig).setShape(srcPt, dstPt);        calcBounds();    }