Dont clear graphics g before drawing the image
authoramwaterhouse <Andrew Waterhouse>
Mon, 29 Jan 2007 17:42:02 +0000 (17:42 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 29 Jan 2007 17:42:02 +0000 (17:42 +0000)
src/jalview/appletgui/AnnotationPanel.java

index d4024ba..01f2c23 100755 (executable)
@@ -196,13 +196,13 @@ public class AnnotationPanel
     if(av.hasHiddenColumns)\r
           res = av.getColumnSelection().adjustForHiddenColumns(res);\r
 \r
-    if (row > -1 && res < aa[row].annotations.length && aa[row].annotations[res] != null)\r
-    {\r
-      StringBuffer text = new StringBuffer("Sequence position " + (res + 1) +\r
-                                           "  " +\r
-                                           aa[row].annotations[res].description);\r
-      ap.alignFrame.statusBar.setText(text.toString());\r
-    }\r
+        if (row > -1 && res < aa[row].annotations.length && aa[row].annotations[res] != null)\r
+        {\r
+          StringBuffer text = new StringBuffer("Sequence position " + (res + 1));\r
+          if (aa[row].annotations[res].description != null)\r
+            text.append("  " + aa[row].annotations[res].description);\r
+          ap.alignFrame.statusBar.setText(text.toString());\r
+        }\r
   }\r
 \r
   public void update(Graphics g)\r
@@ -232,8 +232,6 @@ public class AnnotationPanel
     }\r
 \r
     drawComponent(gg, av.startRes, av.endRes + 1);\r
-    g.setColor(Color.white);\r
-    g.fillRect(0, 0, getSize().width, getSize().height);\r
     g.drawImage(image, 0, 0, this);\r
   }\r
 \r