(int type)
| 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.*/ |
no test coverage detected