Examples of wasCanceled()


Examples of ij.gui.GenericDialog.wasCanceled()

        gd.addChoice("Which Outliers", outlierStrings, outlierStrings[whichOutliers]);
      }
      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
        }
    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()

    stopSlice  = isHyperStack?imp.getNSlices():imp.getStackSize();

    // 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

Examples of ij.gui.GenericDialog.wasCanceled()

    // default value is 0.00, 2 digits right of the decimal point
    gd.addNumericField("value", 0.00, 2);
    gd.addStringField("name", "John");

    gd.showDialog();
    if (gd.wasCanceled())
      return false;

    // get entered values
    value = gd.getNextNumber();
    name = gd.getNextString();
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.