public void setInterpolationMethod(int methodindex) {
		switch (methodindex) {
		case 0:
			method = new NearestNeighbour();
			break;
		case 1:
			method = new LinearInterpolation();
			break;
		case 2:
			method = new NewtonPolynom();
			break;
		case 3:
			method = new CubicSpline();
			break;
		default:
			break;
		}
		repaint();
	}