ModuleEdge theEdge = (ModuleEdge)getOwner(); Point sourcePoint = getSourcePortFig().getCenter(); Point destPoint = getDestPortFig().getCenter(); 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; }
Point srcPt = getSourcePortFig().getCenter(); Point dstPt = getDestPortFig().getCenter();
	public void computeRoute() {        ModuleEdge theEdge = (ModuleEdge)getOwner();        Point sourcePoint = getSourcePortFig().getCenter();        Point destPoint = getDestPortFig().getCenter();        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;        }        sourcePoint = _sourceFigNode.connectionPoint(destPoint);        destPoint = _destFigNode.connectionPoint(sourcePoint);        ((FigLine) _fig).setShape(sourcePoint, destPoint);        calcBounds();    } 