JAL-2348 JAL-2349 make contact maps non-editable so their display height can be adjusted
authorJim Procter <jprocter@issues.jalview.org>
Sun, 4 Dec 2016 12:21:45 +0000 (12:21 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Sun, 4 Dec 2016 12:21:45 +0000 (12:21 +0000)
src/jalview/datamodel/Alignment.java

index 758e1cb..b251a89 100755 (executable)
@@ -1973,6 +1973,10 @@ public class Alignment implements AlignmentI
     AlignmentAnnotation aa = new AlignmentAnnotation("Contact Matrix",
             "Contact Matrix", _aa);
     aa.graph = AlignmentAnnotation.CUSTOMRENDERER;
+    aa.graphMin = 0f;
+    aa.graphMax = 100f;
+    aa.editable = false;
+    // aa.autoCalculated = true;
     contactmaps.put(aa.annotationId, cm);
     addAnnotation(aa);
     return aa;