allow the display character below a graph to be explicitly set to the empty string
authorjprocter <Jim Procter>
Tue, 22 Sep 2009 12:56:31 +0000 (12:56 +0000)
committerjprocter <Jim Procter>
Tue, 22 Sep 2009 12:56:31 +0000 (12:56 +0000)
src/jalview/io/AnnotationFile.java

index 7f71df1..4c38bd2 100755 (executable)
@@ -625,7 +625,7 @@ public class AnnotationFile
     String desc = null, displayChar = null;\r
     char ss = ' '; // secondaryStructure\r
     float value = 0;\r
-    boolean parsedValue = false;\r
+    boolean parsedValue = false,dcset=false;\r
 \r
     // find colour here\r
     java.awt.Color colour = null;\r
@@ -647,6 +647,12 @@ public class AnnotationFile
       token = st.nextToken().trim();\r
       if (token.length() == 0)\r
       {\r
+        if (parsedValue && !dcset)\r
+        {\r
+          // allow the value below the bar/line to be empty\r
+          dcset=true;\r
+          displayChar = "";\r
+        }\r
         continue;\r
       }\r
 \r