EditorFigNode editorDestFig = getDestination(edge, fig.getLayer());
ModuleFigNode editorDestFig = getDestination(edge, fig.getLayer());
    private Rectangle getBoundingBox(EditorFigNode fig) {        // Child Boxes will be a Vector of Rectangles, each large        // enough to hold one of the children of Fig.        Vector childBoxes = new Vector();        Rectangle rect = fig.getBounds();        Vector edges = getOutboundEdges(fig);        Enumeration e = edges.elements();        while (e.hasMoreElements()) {            NetEdge edge = (NetEdge) e.nextElement();            NetPort edgeSrc = (NetPort) edge.getSourcePort();            EditorFigNode editorDestFig = getDestination(edge, fig.getLayer());            childBoxes.add(getBoundingBox(editorDestFig));        }        /*         * Now, rect is the bounding box for this Fig, and all the children         * bounding boxes are in childBoxes. The total width is the maximum of         * the Figs width         */        int width = getTotalWidth(rect, childBoxes);        int height = getTotalHeight(rect, childBoxes);        int x = getTotalX(rect, width);        int y = getTotalY(rect);        return new Rectangle(x, y, width, height);    }