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

Method drawCrosses

ij/src/main/java/ij/plugin/Grid.java:70–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 private void drawCrosses() {
71 GeneralPath path = new GeneralPath();
72 double arm = crossSize*tileWidth;
73 if (arm<3) arm=3;
74 for(int h=0; h<linesV; h++) {
75 for(int v=0; v<linesH; v++) {
76 double x = xstart+h*tileWidth;
77 double y = ystart+v*tileHeight;
78 path.moveTo(x-arm, y);
79 path.lineTo(x+arm, y);
80 path.moveTo(x, y-arm);
81 path.lineTo(x, y+arm);
82 }
83 }
84 drawGrid(path);
85 }
86
87 private void drawLines() {
88 GeneralPath path = new GeneralPath();

Callers 1

drawGridMethod · 0.95

Calls 3

drawGridMethod · 0.95
moveToMethod · 0.45
lineToMethod · 0.45

Tested by

no test coverage detected