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

Method drawTriangle

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

Source from the content-addressed store, hash-verified

506 }
507
508 void drawTriangle(int x, int y) {
509 g.setColor(triangleColor);
510 xOffset+=x*scale; yOffset+=y*scale;
511 m(0,0); d(4,0); m(1,1); d(3,1); m(2,2); d(2,2);
512 }
513
514 void drawDot(int x, int y) {
515 g.fillRect(xOffset+x*scale, yOffset+y*scale, 2*scale, 2*scale);

Callers 2

drawButtonMethod · 0.95
drawIconMethod · 0.95

Calls 3

mMethod · 0.95
dMethod · 0.95
setColorMethod · 0.65

Tested by

no test coverage detected