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

Method copyAttributes

ij/src/main/java/ij/gui/Roi.java:2052–2058  ·  view source on GitHub ↗

Copy the attributes (outline color, fill color, outline width) of 'roi2' to the this selection.

(Roi roi2)

Source from the content-addressed store, hash-verified

2050 /** Copy the attributes (outline color, fill color, outline width)
2051 of 'roi2' to the this selection. */
2052 public void copyAttributes(Roi roi2) {
2053 this. strokeColor = roi2.strokeColor;
2054 this.fillColor = roi2.fillColor;
2055 this.setStrokeWidth(roi2.getStrokeWidth());
2056 this.setName(roi2.getName());
2057 this.group = roi2.group;
2058 }
2059
2060 /**
2061 * @deprecated

Callers 14

enlargeMethod · 0.95
enlargeRectOrOvalMethod · 0.95
shrinkMethod · 0.95
enlarge255Method · 0.95
shrink255Method · 0.95
rotateMethod · 0.95
scaleMethod · 0.95
modifyRoiMethod · 0.95
addCircleMethod · 0.95
subtractCircleMethod · 0.95
rotateShapeMethod · 0.45
scaleShapeMethod · 0.45

Calls 4

setStrokeWidthMethod · 0.95
setNameMethod · 0.95
getStrokeWidthMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected