add: case "dumpmatrix": 	a.length == 2 ? MyDumpMatrix(courbe, a[1]) : MyDumpMatrix(courbe); break; case "jit_matrix":	setPointsFromMatrix(courbe, a[0]); break; 
context: function ArgsParser(courbe, msg, a) {/* 	var tmpReturn = -1; *//* 	var NeedDraw = 0;	// pour savoir si on doit rafficher */	var NeedNotify = -1;	// pour savoir si on doit mettre  jour psto	if ( typeof(a[0]) == "number") {	// en fonction du nombre d'arguments 1 (interpolationX-Y) 2 (AddPoint) 3 (MovePoint)		switch (a.length) {			case 1: interp(courbe, a[0]); break;			case 2: AddOnePoint(courbe, val2x(courbe, a[0]), val2y(courbe, a[1])); askForDrawFunctions(); break;			case 3: MovePoint(courbe, a[0], a[1], a[2]); askForDrawFunctions(); break;			default: ejies.error(this, "too many arguments for message", msg); break;		}		return 0;	// sort de la fonction	}	switch (a[0]) {		case "bang":		line(courbe); break;		case "clear":		a.length == 1 ? MyClear(courbe) : MyClear(courbe, a); break;		case "clearsustain":	MyClearSustain(courbe); break;		case "dump":		a.length == 2 ? MyDump(courbe, a[1]) : MyDump(courbe); break;		case "listdump":	a.length == 2 ? MyListDump(courbe, a[1]) : MyListDump(courbe); break;		case "addpoints":	MyAddPoints(courbe, a); break;		case "fix":			if (a.length == 3) { FixPoint(courbe, a[1], a[2]); } ; break;		case "unfix":		MyUnfix(courbe); break;		case "name":		if (a.length == 2) { MyName(courbe, a[1]);} ; getname(); break;		case "next":		MyNext(courbe); break;		case "nth":			if (a.length == 2) { MyNth(a[1], courbe); } ; break;		case "sustain":		if (a.length == 3) { MySustain(a[1], a[2], courbe); } ; break;		case "domain":							if (a.length == 2)								MyDomain(0, a[1], courbe);							else if (a.length == 3)								MyDomain(a[1], a[2], courbe);							else								ejies.error(this, "bad argument(s) for message domain"); 							NeedNotify++; break;		case "setdomain":								if (a.length == 2)								MySetDomain(0, a[1], courbe);							else if (a.length == 3)								MySetDomain(a[1], a[2], courbe);							else								ejies.error(this, "bad argument(s) for message setdomain");							NeedNotify++; break;		case "range":		if (a.length == 3) { range(a[1], a[2], courbe); } break;		case "setrange":	if (a.length == 3) { setrange(a[1], a[2], courbe); } break;		case "zoom_x":		zoom_x(a[1], a[2], courbe); break;		case "zoom_y":		zoom_y(a[1], a[2], courbe); break;		case "normalize":	MyNormalize(courbe); break;		case "normalize_x":	MyNormalizeX(courbe); break;		case "normalize_y":	MyNormalizeY(courbe); break;		case "flip":		MyFlip(courbe); break;		case "flip_x":		MyFlipX(courbe); break;		case "flip_y":		MyFlipY(courbe); break;		case "zoomout":		MyZoomOut(courbe); break;		case "autodomain":	MyAutoDomain(courbe); break;		case "autorange":	MyAutoRange(courbe); break;		case "removeduplicate": 	MyRemoveDuplicate(courbe); break;		case "smooth":		MySmooth(courbe); break;		case "gridstep":	if (a.length == 2) { MyGridStep(courbe, a[1]); }; break;		case "brgb":		SetColor(courbe, "brgb", a[1], a[2], a[3]); drawAll(); break;		case "frgb":		SetColor(courbe, "frgb", a[1], a[2], a[3]); askForDrawFunctions(); break;		case "rgb2":		SetColor(courbe, "rgb2", a[1], a[2], a[3]); askForDrawFunctions(); break;		case "rgb3":		SetColor(courbe, "rgb3", a[1], a[2], a[3]); askForDrawFunctions(); break;		case "rgb4":		SetColor(courbe, "rgb4", a[1], a[2], a[3]); drawText(); break;		case "rgb5":		SetColor(courbe, "rgb5", a[1], a[2], a[3]); askForDrawFunctions(); break;		case "pastefunction":	MyPasteFunction(courbe); break;		case "pastecolors":	MyPasteColors(courbe); break;		// get things		case "getdomain":	getdomain(courbe); break;		case "getrange":	getrange(courbe); break;		case "getfix":		getfix(courbe); break;		case "getsustain":	getsustain(courbe); break;		case "getgridstep":	getgridstep(courbe); break;		case "getbrgb":		GetColor(courbe, "brgb"); break;		case "getfrgb":		GetColor(courbe, "frgb"); break;		case "getrgb2":		GetColor(courbe, "rgb2"); break;		case "getrgb3":		GetColor(courbe, "rgb3"); break;		case "getrgb4":		GetColor(courbe, "rgb4"); break;		case "getrgb5":		GetColor(courbe, "rgb5"); break;		case "getnbpoints":	getnbpoints(courbe); break;		case "getzoom_x":	getzoom_x(courbe); break;		case "getzoom_y":	getzoom_y(courbe); break;		default: 			// message d'erreurs en fonction du type de message all ou pas							if (msg == "all") {								if (DisplayOneTime == 1) {									ejies.error(this, "bad arguments for message all");									DisplayOneTime = 0;								}							} else {								ejies.error(this, "doesn't understand", a[0]);								return 0;							}							break;	}	/* 	if (NeedNotify == -1) *//* 		return -1; *//* 	else *//* 		return 1; */}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6421/2b3f6c2bef4e28a5511ff06063dbfbc1069c6586/ej.function.js/buggy/ejies-jsui/ej.function.js