import jalview.api.AlignViewportI;
import jalview.api.AlignmentViewPanel;
import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.AlignmentI;
/**
* Base class for alignment calculation workers
{
return ourAnnots!=null && ourAnnots.contains(i);
}
-
+
+ /**
+ * permanently remove from the alignment all annotation rows managed by this worker
+ */
+ @Override
+ public void removeOurAnnotation()
+ {
+ if (ourAnnots!=null && alignViewport!=null)
+ {
+ AlignmentI alignment=alignViewport.getAlignment();
+ synchronized (ourAnnots) {
+ for (AlignmentAnnotation aa:ourAnnots)
+ {
+ alignment.deleteAnnotation(aa, true);
+ }
+ }
+ }
+ }
// TODO: allow GUI to query workers associated with annotation to add items to annotation label panel popup menu
}