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

Method overlayDrawLine

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

Source from the content-addressed store, hash-verified

7289 }
7290
7291 double overlayDrawLine() {
7292 if (overlayPath==null) overlayPath = new GeneralPath();
7293 interp.getLeftParen();
7294 float x1 = (float)interp.getExpression();
7295 interp.getComma();
7296 float y1 = (float)interp.getExpression();
7297 interp.getComma();
7298 float x2 = (float)interp.getExpression();
7299 interp.getComma();
7300 float y2 = (float)interp.getExpression();
7301 interp.getRightParen();
7302 overlayPath.moveTo(x1, y1);
7303 overlayPath.lineTo(x2, y2);
7304 return Double.NaN;
7305 }
7306
7307 double overlayDrawRectOrEllipse(ImagePlus imp, boolean ellipse) {
7308 addDrawingToOverlay(imp);

Callers 1

doOverlayMethod · 0.95

Calls 6

getLeftParenMethod · 0.80
getExpressionMethod · 0.80
getCommaMethod · 0.80
getRightParenMethod · 0.80
moveToMethod · 0.45
lineToMethod · 0.45

Tested by

no test coverage detected