QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(family, qd.pixelType, coefficient, qd.cdStart, qd.cdEnd, bitResolution); rndDefCopy.setQuantumDef(newQd); MethodCall mCall = new MethodCall() { public void doCall() { servant.setQuantumStrategy(family, coefficient, bitResolution); } }; RenderingPropChange rpc = new RenderingPropChange(mCall); eventBus.post(rpc);
QuantumDef qd = rndDefCopy.getQuantumDef(), newQd; newQd = new QuantumDef(qd.pixelType, qd.cdStart, qd.cdEnd, bitResolution, b); rndDefCopy.setQuantumDef(newQd); MethodCall mCall = new MethodCall() { public void doCall() { servant.setQuantumStrategy(bitResolution, b); } }; RenderingPropChange rpc = new RenderingPropChange(mCall); eventBus.post(rpc);
	public void setQuantumStrategy(final int family, final double coefficient,														final int bitResolution)	{		//TODO: this might go well w/ our copy, but then throw an exception		//in the servant. We need a future.				QuantumDef qd = rndDefCopy.getQuantumDef(), newQd;		newQd = new QuantumDef(family, qd.pixelType, coefficient, 										qd.cdStart, qd.cdEnd, bitResolution);		rndDefCopy.setQuantumDef(newQd);		MethodCall mCall = new MethodCall() {			public void doCall() { 				servant.setQuantumStrategy(family, coefficient, bitResolution);			}		};		RenderingPropChange rpc = new RenderingPropChange(mCall);		eventBus.post(rpc);	}