Class BrushTool

  • All Implemented Interfaces:
    PlugIn, java.lang.Runnable

    public class BrushTool
    extends PlugInTool
    implements java.lang.Runnable
    • Constructor Detail

      • BrushTool

        public BrushTool()
    • 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
        Overrides:
        run in class PlugInTool
      • getToolName

        public java.lang.String getToolName()
        Description copied from class: PlugInTool
        Return the tool name.
        Overrides:
        getToolName in class PlugInTool
      • getToolIcon

        public java.lang.String getToolIcon()
        Description copied from class: PlugInTool
        Return the string encoding of the tool icon. See http://rsb.info.nih.gov/ij/developer/macro/macros.html#icons The default icon is the first letter of the tool name.
        Overrides:
        getToolIcon in class PlugInTool
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • setBrushWidth

        public static void setBrushWidth​(int width)