public void deselectAll() {
        Iterator<Map.Entry<Integer, GraphPoint>> it1 = points.entrySet().iterator();
        while (it1.hasNext()) {
            it1.next().getValue().getComponent().setSelect(false);
        }
        Iterator<Map.Entry<Integer, GraphLine>> it2 = lines.entrySet().iterator();
        while (it2.hasNext()) {
            it2.next().getValue().getComponent().setSelect(false);
        }
        changed();
    }