Module ij

Class BrushTool

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

    public class BrushTool
    extends PlugInTool
    implements java.lang.Runnable
    This class implements the Paintbrush Tool, which allows the user to draw on an image, or on an Overlay if "Paint on overlay" is enabled.
    • 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
        run in class PlugInTool
      • getToolName

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

        public java.lang.String getToolIcon()
        Description copied from class: PlugInTool
        Return the string encoding of the tool icon. See The default icon is the first letter of the tool name.
        getToolIcon in class PlugInTool
      • run

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

        public static void setBrushWidth​(int width)