Package ij.gui

Examples of ij.gui.GenericDialog.addChoice()


      GenericDialog gd = new GenericDialog(command+"...");
      gd.addNumericField("Radius", radius, 1, 6, "pixels");
      int digits = imp.getType() == ImagePlus.GRAY32 ? 2 : 0;
      if(filterType == OUTLIERS) {
        gd.addNumericField("Threshold", threshold, digits);
        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;
View Full Code Here


    GenericDialog gd = new GenericDialog("ZProjection",IJ.getInstance());
    gd.addNumericField("Start slice:",startSlice,0/*digits*/);
    gd.addNumericField("Stop slice:",stopSlice,0/*digits*/);

    // Different kinds of projections.
    gd.addChoice("Projection Type", METHODS, METHODS[method]);

    return gd;
    }

    /** Performs actual projection using specified method. */
 
View Full Code Here

                JOptionPane.ERROR_MESSAGE);
            return;
          }
          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;
          }
View Full Code Here

                JOptionPane.ERROR_MESSAGE);
            return;
          }
          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;
          }
View Full Code Here

                JOptionPane.ERROR_MESSAGE);
            return;
          }
          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;
          }
View Full Code Here

    public void run(String arg) {
        OpenDialog od = new OpenDialog("Select a file in source folder...", "");
        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)", "");
View Full Code Here

      radius = lastRadius[filterType]<=0 ? 2 :  lastRadius[filterType];
      gd.addNumericField("Radius", radius, 1, 6, "pixels");
      int digits = imp.getType() == ImagePlus.GRAY32 ? 2 : 0;
      if (filterType==OUTLIERS) {
        gd.addNumericField("Threshold", lastThreshold, digits);
        gd.addChoice("Which outliers", outlierStrings, outlierStrings[lastWhichOutliers]);
        gd.addHelp(IJ.URL+"/docs/menus/process.html#outliers");
      } 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
View Full Code Here

  }
 
  boolean showDialog(ImagePlus imp) {
    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();
View Full Code Here

  @param stop last slice */
    protected GenericDialog buildControlDialog(int start, int stop) {
    GenericDialog gd = new GenericDialog("ZProjection",IJ.getInstance());
    gd.addNumericField("Start slice:",startSlice,0/*digits*/);
    gd.addNumericField("Stop slice:",stopSlice,0/*digits*/);
    gd.addChoice("Projection Type", METHODS, METHODS[method]);
    if (isHyperstack && imp.getNFrames()>1&& imp.getNSlices()>1)
      gd.addCheckbox("All Time Frames", allTimeFrames);
    return gd;
    }

View Full Code Here

      GenericDialog gd = new GenericDialog(command+"...");
      gd.addNumericField("Radius", radius, 1, 6, "pixels");
      int digits = imp.getType() == ImagePlus.GRAY32 ? 2 : 0;
      if(filterType == OUTLIERS) {
        gd.addNumericField("Threshold", threshold, digits);
        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;
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.