From 65f3b4a9eadadb7540c329e710bce082ea1dd8a7 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 3 Feb 2006 17:45:32 +0000 Subject: [PATCH] Save and load graph type --- src/jalview/gui/Jalview2XML.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 8406299..81a6887 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -309,8 +309,10 @@ public class Jalview2XML Annotation an = new Annotation(); an.setDescription(aa[i].description); if(aa[i].graph>0) + { an.setGraph(true); - + an.setGraphType(aa[i].graph); + } an.setLabel(aa[i].label); AnnotationElement ae; @@ -720,7 +722,7 @@ public class Jalview2XML { jaa = new jalview.datamodel.AlignmentAnnotation(an[i].getLabel(), an[i].getDescription(), anot, 0, 0, - jalview.datamodel.AlignmentAnnotation.BAR_GRAPH); + an[i].getGraphType()); } else { -- 1.7.10.2