JAL-1933 update the bounds for the Gap annotation row each time it is computed
authorJim Procter <jprocter@issues.jalview.org>
Thu, 1 Dec 2016 12:15:04 +0000 (12:15 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 1 Dec 2016 12:15:04 +0000 (12:15 +0000)
src/jalview/analysis/AAFrequency.java
src/jalview/datamodel/AlignmentAnnotation.java

index b5dab6f..e682e2c 100755 (executable)
@@ -313,7 +313,9 @@ public class AAFrequency
        */
       return;
     }
-
+    // always set ranges again
+    consensus.graphMax = nseq;
+    consensus.graphMin = 0;
     for (int i = startCol; i < endCol; i++)
     {
       ProfileI profile = profiles.get(i);
index 05688cb..bbd3ce4 100755 (executable)
@@ -170,10 +170,14 @@ public class AlignmentAnnotation
    */
   private Map<Integer, Annotation> sequenceMapping;
 
-  /** DOCUMENT ME!! */
+  /**
+   * lower range for quantitative data
+   */
   public float graphMin;
 
-  /** DOCUMENT ME!! */
+  /**
+   * Upper range for quantitative data
+   */
   public float graphMax;
 
   /**