JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading
[jalviewjs.git] / src / jalview / renderer / AnnotationRenderer.java
index debbf9a..231187f 100644 (file)
@@ -533,7 +533,7 @@ public class AnnotationRenderer
           g.drawImage(fadedImage, 0, y - row.height, imgWidth, y, 0, y
                   - row.height, imgWidth, y, annotationPanel);
           g.setColor(Color.black);
-          // g.drawString("Calculating "+aa[i].label+"....",20, y-row.height/2);
+          // awt2swing.Util.drawString(g, "Calculating "+aa[i].label+"....",20, y-row.height/2);
 
           continue;
         }
@@ -547,7 +547,7 @@ public class AnnotationRenderer
          * annotationPanel.imgWidth, y, annotationPanel);
          * 
          * g.setColor(Color.black); //
-         * g.drawString("Calculating Conservation.....",20, y-row.height/2);
+         * awt2swing.Util.drawString(g, "Calculating Conservation.....",20, y-row.height/2);
          * 
          * continue; } else if (annotationPanel.av.updatingConservation &&
          * aa[i].label.equals("Quality")) {
@@ -556,7 +556,7 @@ public class AnnotationRenderer
          * row.height, annotationPanel.imgWidth, y, 0, y - row.height,
          * annotationPanel.imgWidth, y, annotationPanel);
          * g.setColor(Color.black); // /
-         * g.drawString("Calculating Quality....",20, y-row.height/2);
+         * awt2swing.Util.drawString(g, "Calculating Quality....",20, y-row.height/2);
          * 
          * continue; }
          */
@@ -664,7 +664,7 @@ public class AnnotationRenderer
 
               if (column == 0 || row.graph > 0)
               {
-                g.drawString(displayChar, (x * charWidth) + charOffset, y
+                awt2swing.Util.drawString(g, displayChar, (x * charWidth) + charOffset, y
                         + iconOffset);
               }
               else if (row_annotations[column - 1] == null
@@ -673,7 +673,7 @@ public class AnnotationRenderer
                                       .equals(row_annotations[column - 1].displayCharacter) || (displayChar
                               .length() < 2 && row_annotations[column].secondaryStructure == ' ')))
               {
-                g.drawString(displayChar, x * charWidth + charOffset, y
+                awt2swing.Util.drawString(g, displayChar, x * charWidth + charOffset, y
                         + iconOffset);
               }
               g.setFont(ofont);
@@ -1413,12 +1413,12 @@ public class AnnotationRenderer
             {
               final String codonTranslation = ResidueProperties
                       .codonTranslate(new String(dc));
-              colour = profcolour.findColour(codonTranslation.charAt(0),
+              colour = profcolour.findColourSeq(codonTranslation.charAt(0),
                       column, null);
             }
             else
             {
-              colour = profcolour.findColour(dc[0], column, null);
+              colour = profcolour.findColourSeq(dc[0], column, null);
             }
             g.setColor(colour == Color.white ? Color.lightGray : colour);