java.lang.Object
ij.plugin.tool.PlugInTool
ij.plugin.tool.BrushTool
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the string encoding of the tool icon.Return the tool name.voidmouseDragged(ImagePlus imp, MouseEvent e) voidmousePressed(ImagePlus imp, MouseEvent e) voidmouseReleased(ImagePlus imp, MouseEvent e) voidrun()voidThis method is called when the plugin is loaded.static voidsetBrushWidth(int width) voidMethods inherited from class ij.plugin.tool.PlugInTool
getMacroProgram, mouseClicked, mouseEntered, mouseExited, mouseMoved, runMacroTool, runMenuTool, showPopupMenu
-
Constructor Details
-
BrushTool
public BrushTool()
-
-
Method Details
-
run
Description copied from interface:PlugInThis 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:
runin interfacePlugIn- Overrides:
runin classPlugInTool
-
mousePressed
- Overrides:
mousePressedin classPlugInTool
-
mouseDragged
- Overrides:
mouseDraggedin classPlugInTool
-
mouseReleased
- Overrides:
mouseReleasedin classPlugInTool
-
showOptionsDialog
public void showOptionsDialog()- Overrides:
showOptionsDialogin classPlugInTool
-
getToolName
Description copied from class:PlugInToolReturn the tool name.- Overrides:
getToolNamein classPlugInTool
-
getToolIcon
Description copied from class:PlugInToolReturn 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:
getToolIconin classPlugInTool
-
run
public void run() -
setBrushWidth
public static void setBrushWidth(int width)
-