public Element getNewElement(Point2D startPt, Point2D endPt) throws NoShapeChosenException {
        switch (shapeSelector) {
        case 1:
            return new Room(startPt, endPt, win.getSelectedMaterial());
        case 2:
            return new Wall(startPt, endPt, win.getSelectedMaterial());
        case 3:
            return new Door(startPt, endPt, win.getSelectedMaterial());
        case 4:
            final double pow = win.getSelectedPower();
            final double freq = win.getSelectedFrequency();
            return new AccessPoint(endPt, pow, freq);
        default:
            throw new NoShapeChosenException();
        }
    }