public void removePoint(GraphPoint gp) {
        Iterator<Map.Entry<Integer, GraphLine>> it = this.lines.entrySet().iterator();
        GraphLine gl;
        while (it.hasNext()) {
            gl = it.next().getValue();
            if (gl.getFirst().getId() == gp.getId() || gl.getSecond().getId() == gp.getId()) {
                it.remove();
                removeLine(gl);
            }
        }
        
        points.remove(gp.getId());
        
        panel.remove(gp.getComponent());
        panel.repaint();
    }