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

Method polyline

ij/src/main/java/ij/gui/Toolbar.java:748–754  ·  view source on GitHub ↗
(int... values)

Source from the content-addressed store, hash-verified

746 }
747
748 private void polyline(int... values) {
749 Polygon p = new Polygon();
750 int n = values.length/2;
751 for (int i=0; i<n; i++)
752 p.addPoint(values[i*2]*scale+xOffset, values[i*2+1]*scale+yOffset);
753 g.drawPolyline(p.xpoints, p.ypoints, p.npoints);
754 }
755
756 private void polygon(int... values) {
757 Polygon p = new Polygon();

Callers 1

drawButtonMethod · 0.95

Calls 1

addPointMethod · 0.45

Tested by

no test coverage detected