import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class GestionMouvementSouris implements MouseMotionListener {

	private Fenetre fenetre;
	private GestionSouris clicSouris;

	public GestionMouvementSouris(Fenetre fenetre, GestionSouris clicSouris) {
		this.fenetre = fenetre;
		this.clicSouris = clicSouris;
	}

	public void mouseDragged(MouseEvent e) {
		System.out.println("Appuyé");
		this.clicSouris.setRect(e.getX(), e.getY());
		this.fenetre.repaint();
	}

	public void mouseMoved(MouseEvent e) {
		System.out.println("Relâché");
	}
}