public void deleteSelected() {
        for (Iterator<Connector> iterator = connectors.iterator(); iterator.hasNext(); ) {
            Connector connector = iterator.next();
            if (connector.isSelected() || connector.getFrom().isSelected() || connector.getTo().isSelected()) {
                iterator.remove();
            }
        }
        for (Iterator<Pivot> iterator = pivots.iterator(); iterator.hasNext(); ) {
            Pivot pivot = iterator.next();
            if (pivot.isSelected()) {
                iterator.remove();
            }
        }
    }