protected void changeAnalysisTools(int toolIndex) {
		if (displayedToolIndex == toolIndex) {	//we have nothing to refresh
			return;
		}
		displayedToolIndex = toolIndex;
		this.toolContainer.removeAll();
		switch (displayedToolIndex) {
		case 0:
			break;
		case 1:
			addHeader();
			addPixelLine("Start Point", startXPosition, startYPosition, 2);
			break;
		case 2:
			addHeader();
			addPixelLine("Start Point", startXPosition, startYPosition, 2);
			addPixelLine("Stop Point", stopXPosition, stopYPosition, 3);
			addNumPixels("Length of Line");
			break;
		case 3:
			addHeader();
			addPixelLine("Start Point", startXPosition, startYPosition, 2);
			addPixelLine("Stop Point", stopXPosition, stopYPosition, 3);
			addNumPixels("Pixels in Box");
			break;
		}
		this.revalidateContainer();
		
	}