JAL-2349 JAL-3855 Integrate pAE retrieval in StructureFile so it can be transferred...
[jalview.git] / src / jalview / datamodel / ContactMapHolder.java
index 5ef2b2a..ac1b267 100644 (file)
@@ -50,4 +50,17 @@ public class ContactMapHolder implements ContactMapHolderI
     }
     return aa;
   }
+
+  @Override
+  public ContactMatrixI getContactMatrixFor(AlignmentAnnotation ann)
+  {
+    return contactmaps == null ? null : contactmaps.get(ann.annotationId);
+  }
+
+  @Override
+  public void addContactListFor(AlignmentAnnotation annotation,
+          ContactMatrixI cm)
+  {
+    contactmaps.put(annotation.annotationId, cm);
+  }
 }