private static void saveParameter(FileWriter out,ParameterCode code) throws Exception {
		out.write(code.toString() + " ");
		switch (code) {
		case WINDOWED:
			out.write(WINDOWED+"");
			break;
		case DOT_COLOR:
			out.write(color2String(DOT_COLOR));
			break;
		case LINE_COLOR:
			out.write(color2String(LINE_COLOR));
			break;
		case BACKGROUND_COLOR:
			out.write(color2String(BACKGROUND_COLOR));
			break;
		case ACCENT_COLOR:
			out.write(color2String(ACCENT_COLOR));
			break;
			default: throw new Exception();
		}
	}