MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / setTool

Method setTool

ij/src/main/java/ij/IJ.java:1772–1774  ·  view source on GitHub ↗

Switches to the specified tool, where id = Toolbar.RECTANGLE (0), Toolbar.OVAL (1), etc.

(int id)

Source from the content-addressed store, hash-verified

1770 /** Switches to the specified tool, where id = Toolbar.RECTANGLE (0),
1771 Toolbar.OVAL (1), etc. */
1772 public static void setTool(int id) {
1773 Toolbar.getInstance().setTool(id);
1774 }
1775
1776 /** Switches to the specified tool, where 'name' is "rect", "elliptical",
1777 "brush", etc. Returns 'false' if the name is not recognized. */

Callers 10

setToolMethod · 0.95
dialogItemChangedMethod · 0.95
arrowToolOptionsMethod · 0.95
mousePressedMethod · 0.95
decodeAndSetRoiMethod · 0.95
setupMethod · 0.95
keyPressedMethod · 0.95
keyReleasedMethod · 0.95
shutDownMethod · 0.45
setupListenersMethod · 0.45

Calls 1

getInstanceMethod · 0.95

Tested by

no test coverage detected