public Drawable buildDrawable(int type,int originX,int originY, int width, int height){
		Drawable toReturn = null;
		if(type == Drawable.LINE){
			toReturn = new Line(originX, originY, width, height, figures.size(),toolbox.getBordure());
		}else if(type == Drawable.RECTANGLE){
			toReturn = new Rectangle(originX, originY, width, height, figures.size(),toolbox.getBordure(),toolbox.getInterieur());
		}else if(type == Drawable.SQUARE){
			toReturn = new Square(originX, originY,width, height, figures.size(),toolbox.getBordure(),toolbox.getInterieur());
		}else if(type == Drawable.OVAL){
			toReturn = new Oval(originX, originY, width, height, figures.size(),toolbox.getBordure(),toolbox.getInterieur());
		}else if(type == Drawable.CIRCLE){
			toReturn = new Circle(originX, originY,width, height, figures.size(),toolbox.getBordure(),toolbox.getInterieur());
		}else if(type>=Drawable.TRI_ISO && type<=Drawable.TRI_ISO){
			toReturn = new Triangle(type, originX, originY, width, height, figures.size(),toolbox.getBordure(),toolbox.getInterieur());
		}
		if(this.magnifyingLevel !=1){
			toReturn.modifyScale(magnifyingLevel);
			toReturn.setZoom(magnifyingLevel);
		}
		return toReturn;
	}