((FigLine) _fig).setShape(srcPt, dstPt);
((FigLine) _fig).setShape(sourcePoint, destPoint);
    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();    }