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

Method init2

ij/src/main/java/ij/gui/PolygonRoi.java:108–121  ·  view source on GitHub ↗
(int type)

Source from the content-addressed store, hash-verified

106 }
107
108 private void init2(int type) {
109 if (type==ANGLE && nPoints==3)
110 getAngleAsString();
111 if (type==POINT && Toolbar.getMultiPointMode()) {
112 Prefs.pointAutoMeasure = false;
113 Prefs.pointAutoNextSlice = false;
114 Prefs.pointAddToManager = false;
115 Prefs.pointAddToOverlay = false;
116 userCreated = true;
117 }
118 if (lineWidth>1 && isLine())
119 updateWideLine(lineWidth);
120 finishPolygon();
121 }
122
123 /** Creates a new polygon or polyline ROI from a Polygon. Type must be Roi.POLYGON,
124 Roi.FREEROI, Roi.TRACED_ROI, Roi.POLYLINE, Roi.FREELINE or Roi.ANGLE.*/

Callers 1

PolygonRoiMethod · 0.95

Calls 5

getAngleAsStringMethod · 0.95
getMultiPointModeMethod · 0.95
finishPolygonMethod · 0.95
updateWideLineMethod · 0.80
isLineMethod · 0.45

Tested by

no test coverage detected