Use AAFrequency final keys
authoramwaterhouse <Andrew Waterhouse>
Tue, 10 Oct 2006 10:43:52 +0000 (10:43 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 10 Oct 2006 10:43:52 +0000 (10:43 +0000)
src/jalview/appletgui/AlignViewport.java

index b369b1f..1fa3e3f 100755 (executable)
@@ -321,12 +321,12 @@ public class AlignViewport
     {
       float value = 0;
       if(ignoreGapsInConsensusCalculation)
-        value = ((Float)hconsensus[i].get("pid_nogaps")).floatValue();
+        value = ((Float)hconsensus[i].get(AAFrequency.PID_NOGAPS)).floatValue();
       else
-        value = ((Float)hconsensus[i].get("pid_gaps")).floatValue();
+        value = ((Float)hconsensus[i].get(AAFrequency.PID_GAPS)).floatValue();
 
-      String maxRes = hconsensus[i].get("maxResidue").toString();
-      String mouseOver = hconsensus[i].get("maxResidue") + " ";
+      String maxRes = hconsensus[i].get(AAFrequency.MAXRESIDUE).toString();
+      String mouseOver = maxRes;
       if (maxRes.length() > 1)
       {
         mouseOver = "[" + maxRes + "] ";
@@ -966,7 +966,7 @@ public class AlignViewport
     // be done to remove redundancy.
     CigarArray aligview = getViewAsCigars(selectedOnly);
     if (aligview!=null) {
-      return new AlignmentView(aligview, 
+      return new AlignmentView(aligview,
           (selectedOnly && selectionGroup!=null) ? selectionGroup.getStartRes() : 0);
     }
     return null;