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

Method drawLine

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

Source from the content-addressed store, hash-verified

1149 }
1150
1151 void drawLine() {
1152 interp.getLeftParen();
1153 int x1 = (int)Math.round(interp.getExpression());
1154 interp.getComma();
1155 int y1 = (int)Math.round(interp.getExpression());
1156 interp.getComma();
1157 int x2 = (int)Math.round(interp.getExpression());
1158 interp.getComma();
1159 int y2 = (int)Math.round(interp.getExpression());
1160 interp.getRightParen();
1161 ImageProcessor ip = getProcessor();
1162 ip.drawLine(x1, y1, x2, y2);
1163 updateAndDraw();
1164 }
1165
1166 void doIPMethod(int type) {
1167 interp.getParens();

Callers 2

doFunctionMethod · 0.95
drawPlotLineMethod · 0.45

Calls 8

getProcessorMethod · 0.95
drawLineMethod · 0.95
updateAndDrawMethod · 0.95
getLeftParenMethod · 0.80
getExpressionMethod · 0.80
getCommaMethod · 0.80
getRightParenMethod · 0.80
roundMethod · 0.45

Tested by

no test coverage detected