public int showDialog(ImagePlus imp, String command, PlugInFilterRunner pfr) { gd = new GenericDialog("Convolver..."); gd.addTextAreas(kernelText, null, 10, 30); gd.addPanel(makeButtonPanel(gd)); gd.addCheckbox("Normalize Kernel", normalizeFlag); gd.addPreviewCheckbox(pfr); gd.addDialogListener(this); gd.showDialog(); if (gd.wasCanceled()) return DONE; this.pfr = pfr; return IJ.setupDialog(imp, flags); }
public int showDialog(ImagePlus imp, String command, PlugInFilterRunner pfr) { gd = new GenericDialog("Convolver..."); gd.addTextAreas(kernelText, null, 10, 30); gd.addPanel(makeButtonPanel(gd)); gd.addCheckbox("Normalize Kernel", normalizeFlag); gd.addPreviewCheckbox(pfr); gd.addDialogListener(this); gd.showDialog(); if (gd.wasCanceled()) return DONE; this.pfr = pfr; return IJ.setupDialog(imp, flags); }