Module ij
Package ij.plugin

Class NewPlugin

  • All Implemented Interfaces:
    PlugIn

    public class NewPlugin
    extends java.lang.Object
    implements PlugIn
    This class creates a new macro or the Java source for a new plugin.
    • Constructor Summary

      Constructors 
      Constructor Description
      NewPlugin()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createMacro​(java.lang.String name)  
      void createPlugin​(java.lang.String name, int type, java.lang.String methods)  
      Editor getEditor()
      Returns the Editor the newly created macro or plugin was opened in.
      void run​(java.lang.String arg)
      This method is called when the plugin is loaded.
      boolean showDialog()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewPlugin

        public NewPlugin()
    • Method Detail

      • run

        public void run​(java.lang.String arg)
        Description copied from interface: PlugIn
        This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
        Specified by:
        run in interface PlugIn
      • createMacro

        public void createMacro​(java.lang.String name)
      • createPlugin

        public void createPlugin​(java.lang.String name,
                                 int type,
                                 java.lang.String methods)
      • showDialog

        public boolean showDialog()
      • getEditor

        public Editor getEditor()
        Returns the Editor the newly created macro or plugin was opened in.