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

Method record

ij/src/main/java/ij/gui/PointRoi.java:163–175  ·  view source on GitHub ↗
(int xx, int yy, boolean addingPoint)

Source from the content-addressed store, hash-verified

161 }
162
163 private void record(int xx, int yy, boolean addingPoint) {
164 if (!IJ.recording())
165 return;
166 String add = Prefs.pointAddToOverlay?" add":"";
167 String options = sizes[convertSizeToIndex(size)]+" "+Colors.colorToString(getColor())+" "+types[type]+add;
168 options = options.toLowerCase();
169 if (addingPoint)
170 options = "add";
171 if (Recorder.scriptMode())
172 Recorder.recordCall("imp.setRoi(new PointRoi("+xx+","+yy+",\""+options+"\"));");
173 else
174 Recorder.record("makePoint", xx, yy, options);
175 }
176
177 public void setOptions(String options) {
178 if (options==null)

Callers 2

PointRoiMethod · 0.95
addUserPointMethod · 0.95

Calls 7

recordingMethod · 0.95
convertSizeToIndexMethod · 0.95
colorToStringMethod · 0.95
getColorMethod · 0.95
scriptModeMethod · 0.95
recordCallMethod · 0.95
recordMethod · 0.95

Tested by

no test coverage detected