Пример #1
0
 public synchronized void adjustmentValueChanged(AdjustmentEvent e) {
   if (!running2 || imp.isHyperStack()) {
     if (e.getSource() == cSelector) {
       c = cSelector.getValue();
       if (c == imp.getChannel() && e.getAdjustmentType() == AdjustmentEvent.TRACK) return;
     } else if (e.getSource() == zSelector) {
       z = zSelector.getValue();
       int slice = hyperStack ? imp.getSlice() : imp.getCurrentSlice();
       if (z == slice && e.getAdjustmentType() == AdjustmentEvent.TRACK) return;
     } else if (e.getSource() == tSelector) {
       t = tSelector.getValue();
       if (t == imp.getFrame() && e.getAdjustmentType() == AdjustmentEvent.TRACK) return;
     }
     updatePosition();
     notify();
   }
   if (!running) syncWindows(e.getSource());
 }
Пример #2
0
 public void adjustmentValueChanged(AdjustmentEvent event) {
   if (event.getSource() == SBrecpos) {
     if (event.getAdjustmentType() == AdjustmentEvent.TRACK) {
       goTo(SBrecpos.getValue());
       return;
     }
     if (event.getID() == AdjustmentEvent.ADJUSTMENT_VALUE_CHANGED) {
       SBrecpos.setEnabled(false);
       goTo(SBrecpos.getValue());
       SBrecpos.setEnabled(true);
     }
   }
 }