if (f instanceof EditorFigNode) { EditorNode source = (EditorNode) f.getOwner(); Rectangle rect = getBoundingBox((EditorFigNode) f);
if (f instanceof ModuleFigNode) { ModuleNode source = (ModuleNode) f.getOwner(); Rectangle rect = getBoundingBox((ModuleFigNode) f);
    public void doIt() {        BiosimEditor ed = (BiosimEditor) Globals.curEditor();        Vector selection = ed.getSelectionManager().selections();        Enumeration sel = selection.elements();        while (sel.hasMoreElements()) {            Selection s = (Selection) sel.nextElement();            Fig f = s.getContent();            if (f instanceof EditorFigNode) {                EditorNode source = (EditorNode) f.getOwner();                Rectangle rect = getBoundingBox((EditorFigNode) f);                arrangeRoot((EditorFigNode) f, rect);            }        }        // Must force a refresh here        ed.damageAll();    }