git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a94f65
)
allow the display character below a graph to be explicitly set to the empty string
author
jprocter
<Jim Procter>
Tue, 22 Sep 2009 12:56:31 +0000
(12:56 +0000)
committer
jprocter
<Jim Procter>
Tue, 22 Sep 2009 12:56:31 +0000
(12:56 +0000)
src/jalview/io/AnnotationFile.java
patch
|
blob
|
history
diff --git
a/src/jalview/io/AnnotationFile.java
b/src/jalview/io/AnnotationFile.java
index
7f71df1
..
4c38bd2
100755
(executable)
--- a/
src/jalview/io/AnnotationFile.java
+++ b/
src/jalview/io/AnnotationFile.java
@@
-625,7
+625,7
@@
public class AnnotationFile
String desc = null, displayChar = null;
\r
char ss = ' '; // secondaryStructure
\r
float value = 0;
\r
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
\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
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
continue;
\r
}
\r
\r