Commit f31ddcd6 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

generating automated Roi names in ZenBlue commander

parent 0dd123c9
......@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> -->
<groupId>embl.almf</groupId>
<artifactId>AutoMicTools_</artifactId>
<version>1.1.23-SNAPSHOT</version>
<version>1.1.24-SNAPSHOT</version>
<name>plugins/AutoMicTools_.jar</name>
<description>Collection of tools for automated (feedback) microscopy data acquisition and analysis</description>
......
......@@ -85,6 +85,14 @@ public class ZenBlueCommander implements MicroscopeCommanderInterface{
if (_bleachRois!=null) {
for (Roi thisRoi:_bleachRois){
String roiKey=thisRoi.getName();
if(roiKey==null) {
int counter=0;
do {
counter++;
roiKey=String.format("R%04d", counter);
} while (jrois.names().contains(roiKey));
}
JsonObject currentJRoi=new JsonObject();
int roiType=thisRoi.getType();
switch (roiType){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment