JAL-2349 reusable contact map holder for SequenceI and AnnotatedCollectionI
[jalview.git] / src / jalview / datamodel / ContactMapHolderI.java
diff --git a/src/jalview/datamodel/ContactMapHolderI.java b/src/jalview/datamodel/ContactMapHolderI.java
new file mode 100644 (file)
index 0000000..624a03e
--- /dev/null
@@ -0,0 +1,21 @@
+package jalview.datamodel;
+
+import java.util.Collection;
+
+public interface ContactMapHolderI
+{
+  /**
+   * resolve a contact list instance (if any) associated with the annotation row
+   * and column position
+   * 
+   * @param _aa
+   * @param column
+   * @return
+   */
+  ContactListI getContactListFor(AlignmentAnnotation _aa, int column);
+
+  AlignmentAnnotation addContactList(ContactMatrixI cm);
+
+  Collection<ContactMatrixI> getContactMaps();
+
+}