public void pan(int direction) {
		GCThread.increaseGCFlag(5);
		switch(direction) {
		case 1: 
			double newUpperLeftY = upperLeftY+(utmHeight*0.1);

			if(newUpperLeftY >= 6412239)
				newUpperLeftY = 6412239;

			zoom(upperLeftX, newUpperLeftY, utmWidth, utmHeight, false, 0, 0, 0, 0);
			break;
		case 2:
			double newUpperLeftY1 = (upperLeftY-(utmHeight*0.1));

			if(newUpperLeftY1-utmHeight+1000 <= 6032816)
				newUpperLeftY1 = upperLeftY;

			zoom(upperLeftX, newUpperLeftY1, utmWidth, utmHeight, false, 0, 0, 0, 0);
			break;

		case 3: 
			double newUpperLeftX = upperLeftX-(utmWidth*0.1);
			if(newUpperLeftX <= 434168)
				newUpperLeftX = 434168;

			zoom(newUpperLeftX, upperLeftY, utmWidth, utmHeight, false, 0, 0, 0, 0);
			break;
		case 4:
			double newUpperLeftX1 = upperLeftX+(utmWidth*0.1);
			if(newUpperLeftX1+utmWidth >= 918958)
				newUpperLeftX1 = 918958-utmWidth;

			zoom(newUpperLeftX1, upperLeftY, utmWidth, utmHeight, false, 0, 0, 0, 0);
			break;
		}
	}