Class BrushTool
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 PlugInTool
getMacroProgram, mouseClicked, mouseEntered, mouseExited, mouseMoved, runMacroTool, runMenuTool, showPopupMenu
-
Constructor Details
-
BrushTool
public BrushTool()
-
-
Method Details
-
run
-
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.net/ij/developer/macro/macros.html#icons The default icon is the first letter of the tool name.- Overrides:
getToolIconin classPlugInTool
-
run
-
setBrushWidth
public static void setBrushWidth(int width)
-