From: jprocter Date: Tue, 22 Sep 2009 12:56:31 +0000 (+0000) Subject: allow the display character below a graph to be explicitly set to the empty string X-Git-Tag: Release_2_5~192 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c8feb125d3a159bcf5a7fe196fb1b886a46e5b52;p=jalview.git allow the display character below a graph to be explicitly set to the empty string --- diff --git a/src/jalview/io/AnnotationFile.java b/src/jalview/io/AnnotationFile.java index 7f71df1..4c38bd2 100755 --- a/src/jalview/io/AnnotationFile.java +++ b/src/jalview/io/AnnotationFile.java @@ -625,7 +625,7 @@ public class AnnotationFile String desc = null, displayChar = null; char ss = ' '; // secondaryStructure float value = 0; - boolean parsedValue = false; + boolean parsedValue = false,dcset=false; // find colour here java.awt.Color colour = null; @@ -647,6 +647,12 @@ public class AnnotationFile token = st.nextToken().trim(); if (token.length() == 0) { + if (parsedValue && !dcset) + { + // allow the value below the bar/line to be empty + dcset=true; + displayChar = ""; + } continue; }