@Override
    public void mouseDragged(MouseEvent e) {
        if (inside)
            if (draggedComponente != null) {
                draggedComponente.move(lastPoint, e.getPoint());
                lastPoint = e.getPoint();
            } else if (draggedNodo != null) {
                if (startPoint == null) {
                    startPoint = e.getPoint();
                }
                lastPoint = e.getPoint();
            }
        repaint();
    }