Code example for AnticipateInterpolator

0
	public TimeInterpolator getInterpolator(int pos){
		 
		switch(pos){
			case 0: t = new AccelerateDecelerateInterpolator(); break;
			case 1: t = new AccelerateInterpolator(); break;
			case 2: t = new AnticipateInterpolator(); break;
			case 3: t = new AnticipateOvershootInterpolator(); break;
			case 4: t = new BounceInterpolator(); break;
			case 5: t = new CycleInterpolator(5); break;
			case 6: t = new DecelerateInterpolator(); break;
			case 7: t = new LinearInterpolator(); break;
			case 8: t = new OvershootInterpolator(); break;
			default: t = new AccelerateInterpolator(); break;
				 
		} 
		 
		return t;
	}