Merge branch 'features/JAL-1264_showHideAnnotations' into forpush/JAL-674_dssp
[jalview.git] / src / jalview / datamodel / SequenceI.java
index 5c77940..2e68371 100755 (executable)
@@ -20,7 +20,7 @@
  */
 package jalview.datamodel;
 
-import java.util.Vector;
+import java.util.List;
 
 import fr.orsay.lri.varna.models.rna.RNA;
 
@@ -342,6 +342,17 @@ public interface SequenceI
   public AlignmentAnnotation[] getAnnotation(String label);
 
   /**
+   * Return a list of any annotations which match the given calcId (source) and
+   * label (type). Null values do not match.
+   * 
+   * @param calcId
+   * @param label
+   * @return
+   */
+  public List<AlignmentAnnotation> getAlignmentAnnotations(String calcId,
+          String label);
+
+  /**
    * create a new dataset sequence (if necessary) for this sequence and sets
    * this sequence to refer to it. This call will move any features or
    * references on the sequence onto the dataset. It will also make a duplicate