Examples of wasCanceled()


Examples of ij.gui.GenericDialog.wasCanceled()

          String[] choices = { "Dump to textfile", "Apply to image" };
          GenericDialog gd = new GenericDialog(" Z stamps");
          gd.addChoice("Stamps destination : ", choices,
              "Apply to image");
          gd.showDialog();
          if (gd.wasCanceled()) {
            return;
          }
          String choice = gd.getNextChoice();
          for (int i = 0; i < imageVals.length; i++) {
            Vector v = id.getImageGroupIDs(imageVals[i]);
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

          String[] choices = { "Dump to textfile", "Apply to image" };
          GenericDialog gd = new GenericDialog("Time stamps");
          gd.addChoice("Stamps destination : ", choices,
              "Apply to image");
          gd.showDialog();
          if (gd.wasCanceled()) {
            return;
          }
          String choice = gd.getNextChoice();
          for (int i = 0; i < imageVals.length; i++) {
            Vector v = id.getImageGroupIDs(imageVals[i]);
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

          String[] choices = { "Dump to textfile", "Apply to image" };
          GenericDialog gd = new GenericDialog("Lambdastamps");
          gd.addChoice("Stamps destination : ", choices,
              "Apply to image");
          gd.showDialog();
          if (gd.wasCanceled()) {
            return;
          }
          String choice = gd.getNextChoice();
          for (int i = 0; i < imageVals.length; i++) {
            Vector v = id.getImageGroupIDs(imageVals[i]);
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

        if (od.getFileName()==null) return;
        String dir1 = od.getDirectory();
        GenericDialog gd = new GenericDialog("LSM Batch Converter", IJ.getInstance());
        gd.addChoice("Convert to: ", choices, format);
        gd.showDialog();
        if (gd.wasCanceled())
            return;
        format = gd.getNextChoice();
        SaveDialog sd = new SaveDialog("Open destination folder...", "dummy name (required)", "");
        if (sd.getFileName()==null) return;
        String dir2 = sd.getDirectory();
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

      } else if (filterType==REMOVE_NAN)
        gd.addHelp(IJ.URL+"/docs/menus/process.html#nans");
      gd.addPreviewCheckbox(pfr);    //passing pfr makes the filter ready for preview
      gd.addDialogListener(this);    //the DialogItemChanged method will be called on user input
      gd.showDialog();        //display the dialog; preview runs in the  now
      if (gd.wasCanceled()) return DONE;
      IJ.register(this.getClass())//protect static class variables (filter parameters) from garbage collection
      if (Macro.getOptions() == null) { //interactive only: remember parameters entered
          lastRadius[filterType] = radius;
          if (filterType == OUTLIERS) {
              lastThreshold = threshold;
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

        gd.addNumericField("Radius (Sigma)", sigma, 1, 6, "pixels");
        gd.addNumericField("Mask Weight (0.1-0.9)", weight,2);
        gd.addPreviewCheckbox(pfr);
        gd.addDialogListener(this);
        gd.showDialog();                        //input by the user (or macro) happens here
        if (gd.wasCanceled()) return DONE;
        if (oldMacro) sigma /= 2.5;
        IJ.register(this.getClass());           //protect static class variables (parameters) from garbage collection
        return IJ.setupDialog(imp, flags);      //ask whether to process all slices of stack (if a stack)
    }
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

        } else
            sigmaScaled = false;
        gd.addPreviewCheckbox(pfr);
        gd.addDialogListener(this);
        gd.showDialog();                    // input by the user (or macro) happens here
        if (gd.wasCanceled()) return DONE;
        if (oldMacro) sigma /= 2.5;         // for old macros, "radius" was 2.5 sigma
        IJ.register(this.getClass());       // protect static class variables (parameters) from garbage collection
        return IJ.setupDialog(imp, flags)// ask whether to process all slices of stack (if a stack)
    }
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

    TextWindow tw = (TextWindow)comp;
    if (title2==null) {
      GenericDialog gd = new GenericDialog("Rename", tw);
      gd.addStringField("Title:", "Results2", 20);
      gd.showDialog();
      if (gd.wasCanceled())
        return;
      title2 = gd.getNextString();
    }
    String title1 = title;
    if (title!=null && title.equals("Results")) {
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

    int size = imp.getStackSize();
    GenericDialog gd = new GenericDialog("Z Project");
    gd.addChoice("Projection method", ZProjector.METHODS, ZProjector.METHODS[method]);
    gd.addNumericField("Group size:", size, 0);
    gd.showDialog();
    if (gd.wasCanceled()) return false;
    method = gd.getNextChoiceIndex();
    groupSize = (int)gd.getNextNumber();
    if (groupSize<||  groupSize>size || (size%groupSize)!=0) {
      IJ.error("ZProject", "Group size must divide evenly into the stack size.");
      return false;
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

      stopSlice  = stackSize;
     
    // Build control dialog
    GenericDialog gd = buildControlDialog(startSlice,stopSlice);
    gd.showDialog();
    if(gd.wasCanceled()) return;

    if (!imp.lock()) return;   // exit if in use
    long tstart = System.currentTimeMillis();
    setStartSlice((int)gd.getNextNumber());
    setStopSlice((int)gd.getNextNumber());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.