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.void
mouseDragged
(ImagePlus imp, MouseEvent e) void
mousePressed
(ImagePlus imp, MouseEvent e) void
mouseReleased
(ImagePlus imp, MouseEvent e) void
run()
void
This method is called when the plugin is loaded.static void
setBrushWidth
(int width) void
Methods 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: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 interfacePlugIn
- Overrides:
run
in classPlugInTool
-
mousePressed
- Overrides:
mousePressed
in classPlugInTool
-
mouseDragged
- Overrides:
mouseDragged
in classPlugInTool
-
mouseReleased
- Overrides:
mouseReleased
in classPlugInTool
-
showOptionsDialog
public void showOptionsDialog()- Overrides:
showOptionsDialog
in classPlugInTool
-
getToolName
Description copied from class:PlugInTool
Return the tool name.- Overrides:
getToolName
in classPlugInTool
-
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 classPlugInTool
-
run
public void run() -
setBrushWidth
public static void setBrushWidth(int width)
-