package mouse;

public class graphique {

}

 class Point {
	  private int x;
	  private int y;

	  public Point(int x, int y) {
	    this.x = x;
	    this.y = y;
	  }

	  public void translater(int x, int y) {
	    this.x = this.x + x;
	    this.y = this.y + y;
	  }
	  
	  public int compareTo(Point p){
		  if ((this.x == p.x) && (this.y == p.y)){
			  return 0;
		  }
		  else if (this.x < p.x){
			  return -1;
		  }
		  return 1;
	  }

	  public void setX(int x) {
		this.x = x;
	  }

	  public void setY(int y) {
		this.y = y;
	  }

	  public int getX() {
	    return x;
	  }

	  public int getY() {
	    return y;
	  }

	  public String toString() {
	    return ("("+ x +"," + y + ")");
	  }
}

