X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FContactMapHolder.java;h=584937424e2b5f183049e5410d0151067a099ed5;hb=335e6b12c126bcb6825cd3f66422677db7cd91c7;hp=f6ccc6a5664484054c7ea938fc00b84c444a4a94;hpb=9d9ad2a9237a50e305349a63eb01bb5548d028d0;p=jalview.git diff --git a/src/jalview/datamodel/ContactMapHolder.java b/src/jalview/datamodel/ContactMapHolder.java index f6ccc6a..5849374 100644 --- a/src/jalview/datamodel/ContactMapHolder.java +++ b/src/jalview/datamodel/ContactMapHolder.java @@ -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); } }