public void setVariable(){
		nbCaseX = Math.min(this.getWidth()/this.RectSize,this.mapNbX);
		nbCaseY = Math.min(this.getHeight()/this.RectSize, this.mapNbY);
		
		Istart = this.xStart;
		Jstart = this.yStart;
		if(nbCaseX == this.mapNbX){
			Istart = 0;
		}
		if(nbCaseY == this.mapNbY){
			Jstart = 0;
		}
	}