/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*/
AlignmentAnnotation[] getAlignmentAnnotation();
+ /**
+ * Returns a list of annotations matching the given calc id, or an empty list
+ * if calcId is null
+ *
+ * @param calcId
+ * @return
+ */
Iterable<AlignmentAnnotation> findAnnotation(String calcId);
+ Iterable<AlignmentAnnotation> findAnnotations(SequenceI seq,
+ String calcId, String label);
+
/**
* context for this annotated collection
*
* alignment, parent group).
*/
AnnotatedCollectionI getContext();
-
- /**
- * Return an iterable set of any annotations in the collection that match the
- * provided criteria, i.e.
- * <ul>
- * <li>reference the same sequence datasequence</li>
- * <li>have the same calcId (source of annotation)</li>
- * <li>have the same label (type of annotation)</li>
- * </ul>
- *
- * @param datasequence
- * @param calcId
- * @param label
- * @return
- */
- Iterable<AlignmentAnnotation> findAnnotation(SequenceI datasequence,
- String calcId, String label);
}