set samples per pixel in java class