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

Method getToolName

ij/src/main/java/ij/gui/Toolbar.java:843–848  ·  view source on GitHub ↗

Returns the name of the current tool.

()

Source from the content-addressed store, hash-verified

841
842 /** Returns the name of the current tool. */
843 public static String getToolName() {
844 String name = instance.getName(current);
845 if (current>=UNUSED && current<instance.getNumTools() && instance.names[current]!=null)
846 name = instance.names[current];
847 return name!=null?name:"";
848 }
849
850 /** Returns the name of the specified tool. */
851 String getName(int id) {

Callers 7

createNewRoiMethod · 0.95
getToolNameMethod · 0.95
dialogItemChangedMethod · 0.95
arrowToolOptionsMethod · 0.95
setTool2Method · 0.95
itemStateChangedMethod · 0.95
addPlugInToolMethod · 0.45

Calls 2

getNumToolsMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected