remove alignmentAnnotation added
[jalview.git] / src / jalview / datamodel / Sequence.java
index aaf06f1..718d72b 100755 (executable)
@@ -762,6 +762,16 @@ public class Sequence
     annotation.setSequenceRef(this);
   }
 
+  public void removeAlignmentAnnotation(AlignmentAnnotation annotation)
+  {
+    if(this.annotation!=null)
+    {
+      this.annotation.remove(annotation);
+      if(this.annotation.size()==0)
+        this.annotation = null;
+    }
+  }
+
 
   /**
    * test if this is a valid candidate for another