Esempio n. 1
0
  /** 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);
  }
Esempio n. 2
0
 @Override
 public void gotDeSelected() {
   joystickPanel_.gotDeSelected();
   slopeCalibrationFrame_.savePosition();
   slopeCalibrationFrame_.setVisible(false);
 }