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

Method isActive

ij/src/main/java/ij/macro/Functions.java:2935–2942  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2933 }
2934
2935 double isActive() {
2936 int id = (int)getArg();
2937 ImagePlus imp = WindowManager.getCurrentImage();
2938 if (imp==null || imp.getID()!=id)
2939 return 0.0; //false
2940 else
2941 return 1.0; //true
2942 }
2943
2944 double isOpen() {
2945 interp.getLeftParen();

Callers 1

getFunctionValueMethod · 0.95

Calls 3

getArgMethod · 0.95
getCurrentImageMethod · 0.95
getIDMethod · 0.95

Tested by

no test coverage detected