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

Method drawLines

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

Source from the content-addressed store, hash-verified

85 }
86
87 private void drawLines() {
88 GeneralPath path = new GeneralPath();
89 int width = imp.getWidth();
90 int height = imp.getHeight();
91 for(int i=0; i<linesV; i++) {
92 float xoff = (float)(xstart+i*tileWidth);
93 path.moveTo(xoff,0f);
94 path.lineTo(xoff, height);
95 }
96 for(int i=0; i<linesH; i++) {
97 float yoff = (float)(ystart+i*tileHeight);
98 path.moveTo(0f, yoff);
99 path.lineTo(width, yoff);
100 }
101 drawGrid(path);
102 }
103
104 private void drawHorizontalLines() {
105 GeneralPath path = new GeneralPath();

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