JAL-3858 persist PAE matrix (only so far) as serialised floats in element on dataset...
[jalview.git] / src / jalview / datamodel / ContactMapHolder.java
index f6ccc6a..5849374 100644 (file)
@@ -66,6 +66,14 @@ public class ContactMapHolder implements ContactMapHolderI
   public void addContactListFor(AlignmentAnnotation annotation,
           ContactMatrixI cm)
   {
+    // update annotation with data from contact map
+    annotation.graphMin = cm.getMin();
+    annotation.graphMax = cm.getMax();
+    annotation.editable = false;
+    annotation.graph = AlignmentAnnotation.CONTACT_MAP;
+    annotation.calcId = cm.getType();
+    annotation.label = cm.getAnnotLabel();
+    annotation.description = cm.getAnnotDescr();
     contactmaps.put(annotation.annotationId, cm);
   }
 }