} else if (en instanceof VTOL) { ams = (DisplayMapSet) vtol; minLeftMargin = minVTOLLeftMargin; minTopMargin = minVTOLTopMargin; minBottomMargin = minVTOLTopMargin; minRightMargin = minVTOLLeftMargin;
    public void displayMech(Entity en) {        // Look out for a race condition.        if (null == en) {            return;        }        DisplayMapSet ams = (DisplayMapSet) mech;        removeAll();        if (en instanceof Mech) {            ams = (DisplayMapSet) mech;            minLeftMargin = minMechLeftMargin;            minTopMargin = minMechTopMargin;            minBottomMargin = minMechBottomMargin;            minRightMargin = minMechRightMargin;        } else if (en instanceof Tank) {            ams = (DisplayMapSet) tank;            minLeftMargin = minTankLeftMargin;            minTopMargin = minTankTopMargin;            minBottomMargin = minTankTopMargin;            minRightMargin = minTankLeftMargin;        } else if (en instanceof BattleArmor) {            ams = (DisplayMapSet) battleArmor;            minLeftMargin = minInfLeftMargin;            minTopMargin = minInfTopMargin;            minBottomMargin = minInfTopMargin;            minRightMargin = minInfLeftMargin;        } else if (en instanceof Infantry) {            ams = (DisplayMapSet) infantry;            minLeftMargin = minInfLeftMargin;            minTopMargin = minInfTopMargin;            minBottomMargin = minInfTopMargin;            minRightMargin = minInfLeftMargin;        } else if (en instanceof Protomech) {            ams = (DisplayMapSet) proto;            minLeftMargin = minTankLeftMargin;            minTopMargin = minTankTopMargin;            minBottomMargin = minTankTopMargin;            minRightMargin = minTankLeftMargin;        }        if (null == ams) {            System.err.println("The armor panel is null."); //$NON-NLS-1$            return;        }        ams.setEntity(en);        this.addElement(ams.getContentGroup());        Vector v = ams.getBackgroundDrawers();        Enumeration iter = v.elements();        while (iter.hasMoreElements()) {            addBgDrawer((BackGroundDrawer) iter.nextElement());        }        onResize();        update();    }