@Override
    public void mousePressed(MouseEvent click) {
        for (int i = 0; i < components.getLength(); i++) {
            Componente component = components.get(i);
            for (int j = 0; j < component.getOutputs(); j++) {
                if (component.getRectSalidas().get(j).contains(click.getPoint())) {
                    dragging = true;
                    startPoint = click.getPoint();
                    lastPoint = click.getPoint();
                    draggedNodo = component.getRectSalidas().get(j);
                    return;
                }
            }

            if (component.contains(click.getPoint())) {
                dragging = true;
                lastPoint = click.getPoint();
                draggedComponente = components.get(i);
                return;
            }
        }
    }