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

Method d

ij/src/main/java/ij/gui/Toolbar.java:734–742  ·  view source on GitHub ↗
(int x, int y)

Source from the content-addressed store, hash-verified

732 }
733
734 private void d(int x, int y) {
735 x *= scale;
736 y *= scale;
737 x += xOffset;
738 y += yOffset;
739 g.drawLine(this.x, this.y, x, y);
740 this.x = x;
741 this.y = y;
742 }
743
744 private void dot(int x, int y) {
745 g.fillRect(xOffset+x*scale, yOffset+y*scale, 1*scale, 1*scale);

Callers 3

drawButtonMethod · 0.95
drawTriangleMethod · 0.95
drawPointMethod · 0.95

Calls 1

drawLineMethod · 0.45

Tested by

no test coverage detected