コード例 #1
0
ファイル: StackWindow.java プロジェクト: Jondeen/imagej1
 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
ファイル: dbfShow.java プロジェクト: akerigan/staxer
 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);
     }
   }
 }