I'm not sure what your application structure is, but is it possible that you could pass in your canvas size values into a method? Our team doesn't use an additional window to set the calibration, but perhaps you could pass in values like canvas.getHeight() and canvas.getWidth()? Or even pass in your entire canvas?