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

Method drawHorizontalLines

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

Source from the content-addressed store, hash-verified

102 }
103
104 private void drawHorizontalLines() {
105 GeneralPath path = new GeneralPath();
106 int width = imp.getWidth();
107 int height = imp.getHeight();
108 for(int i=0; i<linesH; i++) {
109 float yoff = (float)(ystart+i*tileHeight);
110 path.moveTo(0f, yoff);
111 path.lineTo(width, yoff);
112 }
113 drawGrid(path);
114 }
115
116 void drawGrid(Shape shape) {
117 if (shape==null) {

Callers 1

drawGridMethod · 0.95

Calls 5

drawGridMethod · 0.95
getWidthMethod · 0.45
getHeightMethod · 0.45
moveToMethod · 0.45
lineToMethod · 0.45

Tested by

no test coverage detected