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)
| 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() { |
no test coverage detected