dont draw first block if colour is null
[jalview.git] / src / jalview / gui / AlignViewport.java
index 19a206d..9d63cde 100755 (executable)
@@ -22,6 +22,7 @@ public class AlignViewport
   boolean wrapAlignment=false;\r
   boolean renderGaps = true;\r
   boolean showSequenceFeatures = false;\r
+  boolean showAnnotation = true;\r
 \r
   boolean colourAppliesToAllGroups = true;\r
   ColourSchemeI globalColourScheme = null;\r
@@ -42,7 +43,6 @@ public class AlignViewport
 \r
   ColumnSelection colSel = new ColumnSelection();\r
 \r
-\r
   int threshold;\r
   int increment;\r
 \r
@@ -134,7 +134,7 @@ public class AlignViewport
           maxRes = "+ ";\r
         }\r
 \r
-        mouseOver += value+"%";\r
+        mouseOver += (int)value+"%";\r
         annotations[i] = new Annotation(maxRes, mouseOver, ' ', value);\r
 \r
     }\r
@@ -421,4 +421,15 @@ public class AlignViewport
   {\r
     showFullId = b;\r
   }\r
+\r
+  public boolean getShowAnnotation()\r
+  {\r
+    return showAnnotation;\r
+  }\r
+\r
+  public void setShowAnnotation(boolean b)\r
+  {\r
+    showAnnotation = b;\r
+  }\r
+\r
 }\r