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

Method drawOrFill

ij/src/main/java/ij/macro/Functions.java:3973–3986  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

3971 }
3972
3973 void drawOrFill(int type) {
3974 int x = (int)getFirstArg();
3975 int y = (int)getNextArg();
3976 int width = (int)getNextArg();
3977 int height = (int)getLastArg();
3978 ImageProcessor ip = getProcessor();
3979 switch (type) {
3980 case DRAW_RECT: ip.drawRect(x, y, width, height); break;
3981 case FILL_RECT: ip.setRoi(x, y, width, height); ip.fill(); break;
3982 case DRAW_OVAL: ip.drawOval(x, y, width, height); break;
3983 case FILL_OVAL: ip.fillOval(x, y, width, height); break;
3984 }
3985 updateAndDraw();
3986 }
3987
3988 double getScreenDimension(int type) {
3989 interp.getParens();

Callers 1

doFunctionMethod · 0.95

Calls 10

getFirstArgMethod · 0.95
getNextArgMethod · 0.95
getLastArgMethod · 0.95
getProcessorMethod · 0.95
drawRectMethod · 0.95
setRoiMethod · 0.95
fillMethod · 0.95
drawOvalMethod · 0.95
fillOvalMethod · 0.95
updateAndDrawMethod · 0.95

Tested by

no test coverage detected