JAL-2629 tidy unit tests, constants etc
[jalview.git] / src / jalview / renderer / AnnotationRenderer.java
index ed67aa6..b3aea2c 100644 (file)
@@ -36,6 +36,7 @@ import jalview.schemes.NucleotideColourScheme;
 import jalview.schemes.ResidueProperties;
 import jalview.schemes.ZappoColourScheme;
 import jalview.util.Platform;
+import jalview.workers.InformationThread;
 
 import java.awt.BasicStroke;
 import java.awt.Color;
@@ -375,7 +376,7 @@ public class AnnotationRenderer
     // properties/rendering attributes as a global 'alignment group' which holds
     // all vis settings for the alignment as a whole rather than a subset
     //
-    if ("HMM".equals(aa.getCalcId()))
+    if (InformationThread.HMM_CALC_ID.equals(aa.getCalcId()))
     {
       HiddenMarkovModel hmm = aa.sequenceRef.getHMM();
       return AAFrequency.extractHMMProfile(hmm, column,
@@ -526,7 +527,7 @@ public class AnnotationRenderer
           renderProfile = av_renderProfile;
           normaliseProfile = av_normaliseProfile;
         }
-        else if ("HMM".equals(row.getCalcId()))
+        else if (InformationThread.HMM_CALC_ID.equals(row.getCalcId()))
         {
           renderHistogram = av_renderInformationHistogram;
           renderProfile = av_renderHMMProfile;