/** Gets called when this tab gets focus. Uses the ActionListeners of the UI components */ @Override public void gotSelected() { posUpdater_.pauseUpdates(true); joystickPanel_.gotSelected(); cameraPanel_.gotSelected(); beamPanel_.gotSelected(); props_.callListeners(); // moves illumination piezo to home if (illumPiezoHomeEnable_.isSelected() && devices_.isValidMMDevice(piezoIlluminationDeviceKey_)) { props_.setPropValue( piezoIlluminationDeviceKey_, Properties.Keys.MOVE_TO_HOME, Properties.Values.DO_IT); } // set scan waveform to be triangle // SPIM use can change, but for alignment avoid sharp edges props_.setPropValue( micromirrorDeviceKey_, Properties.Keys.SA_PATTERN_X, Properties.Values.SAM_TRIANGLE, true); // move piezo and scanner to "center" position centerPiezoAndGalvo(); posUpdater_.pauseUpdates(false); }
@Override public void refreshSelected() { // called after autofocus cameraPanel_.gotSelected(); beamPanel_.gotSelected(); }
/** * required by LiveModeListener interface; just pass call along to camera panel * * @param enable - signals whether or not live mode is enabled */ @Override public void liveModeEnabled(boolean enable) { cameraPanel_.liveModeEnabled(enable); }