From 37479c92b982f22da98bb5a8d2eb404fa804bc7d Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 7 Jul 2006 13:01:17 +0000 Subject: [PATCH] Dont write graph type twice --- src/jalview/io/AnnotationFile.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/jalview/io/AnnotationFile.java b/src/jalview/io/AnnotationFile.java index e427605..801a9ab 100755 --- a/src/jalview/io/AnnotationFile.java +++ b/src/jalview/io/AnnotationFile.java @@ -63,17 +63,18 @@ public class AnnotationFile } - switch( row.graph ) + if( row.graph == AlignmentAnnotation.NO_GRAPH) { - case AlignmentAnnotation.NO_GRAPH: text.append("NO_GRAPH\t"); - break; - case AlignmentAnnotation.BAR_GRAPH: + } + else + { + if( row.graph == AlignmentAnnotation.BAR_GRAPH) text.append("BAR_GRAPH\t"); - case AlignmentAnnotation.LINE_GRAPH: + else if(row.graph == AlignmentAnnotation.LINE_GRAPH) text.append("LINE_GRAPH\t"); - if(row.getThreshold()!=null) + if(row.getThreshold()!=null) graphLine.append("GRAPHLINE\t" + row.label + "\t" + row.getThreshold().value + "\t" @@ -321,8 +322,8 @@ public class AnnotationFile if(!parsedValue) { try{ - value = new Float(token).floatValue(); displayChar = token; + value = new Float(token).floatValue(); parsedValue = true; }catch(NumberFormatException ex){} } @@ -332,6 +333,7 @@ public class AnnotationFile // Either this character represents a helix or sheet // or an integer which can be displayed ss = token.charAt(0); + displayChar = ""; } else if(desc.length()<1) desc = token; -- 1.7.10.2