private void setCalibratedZoomFactor(double d) { if (scene instanceof CalibratedScene) { CalibratedScene calibratedScene = (CalibratedScene) scene; calibratedScene.setCalibratedZoomFactor(d); } else { scene.setZoomFactor(d); } }
private double getCalibratedZoomFactor() { if (scene instanceof CalibratedScene) { CalibratedScene calibratedScene = (CalibratedScene) scene; return calibratedScene.getCalibratedZoomFactor(); } else { return scene.getZoomFactor(); } }