void setIntProperty(String key, int value, boolean defineNew) {
		while (true) {
			if (key.equalsIgnoreCase("backgroundModel")) {
				setBackgroundModel(value);
				break;
			}
			if (key.equalsIgnoreCase("specPower")) {
				setSpecularPower(value);
				break;
			}
			if (key.equalsIgnoreCase("specular")) {
				setSpecularPercent(value);
				break;
			}
			if (key.equalsIgnoreCase("diffuse")) {
				setDiffusePercent(value);
				break;
			}
			if (key.equalsIgnoreCase("ambient")) {
				setAmbientPercent(value);
				break;
			}
			if (key.equalsIgnoreCase("ribbonAspectRatio")) {
				setRibbonAspectRatio(value);
				break;
			}
			if (key.equalsIgnoreCase("pickingSpinRate")) {
				setPickingSpinRate(value);
				break;
			}
			if (key.equalsIgnoreCase("animationFps")) {
				setAnimationFps(value);
				break;
			}
			if (key.equalsIgnoreCase("percentVdwAtom")) {
				setPercentVdwAtom(value);
				break;
			}
			if (key.equalsIgnoreCase("bondRadiusMilliAngstroms")) {
				setMarBond((short) value);
				break;
			}
			if (key.equalsIgnoreCase("hermiteLevel")) {
				setHermiteLevel(value);
				break;
			}
			if (value != 0 || value != 1 || !setBooleanProperty(key, false, false))
				setFloatProperty(key, value);
			return;
		}
		if (defineNew)
			global.setParameterValue(key, value);
	}