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

Method setDefaultGroup

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

Sets the group value assigned to newly created ROIs, and also sets the default ROI color to the group color. Set to zero to not have a default group and to use the default ROI color. @see #setGroup @see #getGroup @see #getGroupColor

(int group)

Source from the content-addressed store, hash-verified

1840 * @see #getGroupColor
1841 */
1842 public static void setDefaultGroup(int group) {
1843 if (group<0 || group>MAX_ROI_GROUP)
1844 throw new IllegalArgumentException("Invalid group: "+group);
1845 defaultGroup = group;
1846 groupColor = getGroupColor(group);
1847 }
1848
1849 /** Returns the group attribute of this ROI. */
1850 public int getGroup() {

Callers 3

doRoiMethod · 0.95
showDialogMethod · 0.95
dialogItemChangedMethod · 0.95

Calls 1

getGroupColorMethod · 0.95

Tested by

no test coverage detected