/** Displays a message in a dialog box titled "Message". Writes the Java console if ImageJ is not present. */ public static void showMessage(String msg) { showMessage("Message", msg); }
private void showMissingPluginsMessage() { IJ.showMessage("Path Randomization", "Plugins were not loaded due to macOS Path Randomization.\n"+ "To work around this problem, move ImageJ.app out of the\n"+ "ImageJ folder and then copy it back. More information is at\n \n"+ IJ.URL+"/docs/install/osx.html#randomization"); }
@Override final protected void showHelp() { IJ.showMessage( "Interactive Signed Square Block Correlation", "Click and drag to change the block size." + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); } }
@Override final public void showHelp() { IJ.showMessage( "Interactive Mean Smooth", "Click and drag to change the size of the smoothing kernel." + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); } }
/** * Show plug-in information. * */ void showAbout() { IJ.showMessage( "About Skeletonize3D...", "This plug-in filter produces 3D thinning (skeletonization) of binary 3D images.\n"); } /* end showAbout */ /* -----------------------------------------------------------------------*/
/** * Display filter information */ void showAbout() { IJ.showMessage("Entropy filter...", "Circular entropy filter by I. Arganda-Carreras\n"+ "ImageJ local entropy filter. Output is 32-bit\n"); }
private void aboutPluginsHelp() { IJ.showMessage("\"About Plugins\" Submenu", "Plugins packaged as JAR files can add entries\n"+ "to this submenu. There is an example at\n \n"+ IJ.URL+"/plugins/jar-demo.html"); }
@Override public void run(final String arg) { IJ.showMessage("Image5D " + Image5D.VERSION, "Viewing and handling 5D (x/y/channel/z/time) image-data.\n" + "Author: Joachim Walter"); }
void showAbout() { IJ.showMessage("About RGBtoLab...", "RGBtoLab by Gabriel Landini, G.Landini@bham.ac.uk\n"+ "Converts from RGB to CIE L*a*b* and stores the results in the same\n"+ "RGB image R=L*, G=a*, B=b*. Values are therfore offset and rescaled."); }
@Override final protected void showHelp() { IJ.showMessage( "Interactive Difference of Means", "Click and drag to change the size of the smoothing kernel." + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); }
void showAbout() { IJ.showMessage("About 2D Anisotropic Diffusion Tschumperle-Deriche", "version "+ADTDVersion+" ("+ADTDDate+")\n"+ "Vladimir Pilny, Jiri Janacek GPL2\n"+ "Based on CImg Library - http://cimg.sourceforge.net/\n\n"+ "This plugin is designed to filter images\n"+ "using 2D Tschumperle-Deriche's anisotropic diffusion."); } // end of 'showAbout' method
@Override protected void showHelp() { IJ.showMessage( "Interactive Block Correlation", "Click and drag to change the block size." + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); }
@Override final protected void showHelp() { IJ.showMessage( "Interactive Block Standard Deviation", "Click and drag to change the size of the smoothing kernel." + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); }
@Override final protected void showHelp() { IJ.showMessage( "Interactive Mean Smooth", "Click and drag to change the size of the smoothing kernel." + NL + "U - Toggle integral sampling" + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); } }
@Override final protected void showHelp() { IJ.showMessage( "Interactive Block Variance", "Click and drag to change the size of the smoothing kernel." + NL + "ENTER - Apply" + NL + "ESC - Cancel" ); }
static void checkForDuplicate(String key, String value) { if (commandOptions!=null && commandName!=null && commandOptions.indexOf(key)!=-1 && (value.equals("") || commandOptions.indexOf(value)==-1)) { if (key.endsWith("=")) key = key.substring(0, key.length()-1); IJ.showMessage("Recorder", "Duplicate keyword:\n \n" + " Command: " + "\"" + commandName +"\"\n" + " Keyword: " + "\"" + key +"\"\n" + " Value: " + value+"\n \n" + "Add an underscore to the corresponding label\n" + "in the dialog to make the first word unique."); } }
@Override public void windowClosed(WindowEvent e) { System.out.println("Closing"); if(gd2.wasOKed()) { rename(src, dst); IJ.showMessage("Done"); } } });
public void run(String arg) { IJ.showMessage( TJ.name()+": About", TJ.name()+" is a plugin package for image transformation.\n"+ "The version number of the present installation is "+TJ.version()+".\n"+ "Copyright (C) 2001-"+Calendar.getInstance().get(Calendar.YEAR)+" by Erik Meijering.\n" ); }
void error(final String message) { log(message); if (image != null) new MTJMessage((Frame)image.getWindow(),MTJ_ERROR,message+"."); else if (IJ.getInstance() != null) new MTJMessage(IJ.getInstance(),MTJ_ERROR,message+"."); else IJ.showMessage(MTJ_ERROR,message+"."); }
public void run(ImageProcessor ip) { SegmentatorModel model = new SegmentatorModel(IJ.getImage()); int currentSlice = model.data.getCurrentSlice(); ImageProcessor labelData = model.getLabelImagePlus().getStack().getProcessor(currentSlice); if(model.getCurrentMaterial() == null){ IJ.showMessage("please select a label first"); return; } close(labelData, IJ.getImage().getRoi(), (byte)model.getCurrentMaterial().id); model.updateSlice(currentSlice); }