public void adjustmentValueChanged(AdjustmentEvent e) { Object ob = e.getSource(); int p, q, r; p = s1.getValue(); q = s2.getValue(); r = s3.getValue(); Color c = new Color(p, q, r); p1.setBackground(c); }
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()); }
public synchronized void adjustmentValueChanged(AdjustmentEvent e) { Object source = e.getSource(); for (int i = 0; i < slider.size(); i++) { if (source == slider.elementAt(i)) { Scrollbar sb = (Scrollbar) source; TextField tf = (TextField) numberField.elementAt(sliderIndexes[i]); int digits = sliderScales[i] == 1.0 ? 0 : 2; tf.setText("" + IJ.d2s(sb.getValue() / sliderScales[i], digits)); } } }
/** Capture des évènements des scrollbars */ public void adjustmentValueChanged(AdjustmentEvent e) { if (e.getSource().equals(sb_victoires)) { int valeur = sb_victoires.getValue(); lbl_victoires.setText("Nombre De Victoires: " + valeur); nb_victoires = valeur; } else { int valeur = sb_fps.getValue(); lbl_fps.setText("FPS: " + valeur); fps = valeur; } } // adjustmentValueChanged()
/* * Method of the AdjustmenListener interface. */ @Override public void adjustmentValueChanged(final AdjustmentEvent e) { if (bar != null && e.getSource() == bar) { final AdjustmentEvent myE = new AdjustmentEvent( this, e.getID(), e.getAdjustmentType(), e.getValue(), e.getValueIsAdjusting()); final AdjustmentListener listener = adjustmentListener; if (listener != null) { listener.adjustmentValueChanged(myE); } } }
public synchronized void adjustmentValueChanged(AdjustmentEvent e) { if (!checkImage()) { IJ.beep(); IJ.showStatus("No Image"); return; } if (e.getSource() == minSlider) { adjustMinHue((int) minSlider.getValue()); } else if (e.getSource() == maxSlider) { adjustMaxHue((int) maxSlider.getValue()); } else if (e.getSource() == minSlider2) { adjustMinSat((int) minSlider2.getValue()); } else if (e.getSource() == maxSlider2) { adjustMaxSat((int) maxSlider2.getValue()); } else if (e.getSource() == minSlider3) { adjustMinBri((int) minSlider3.getValue()); } else if (e.getSource() == maxSlider3) { adjustMaxBri((int) maxSlider3.getValue()); } originalB.setEnabled(true); updateLabels(); updatePlot(); notify(); }
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); } } }