Save and load graph type
authoramwaterhouse <Andrew Waterhouse>
Fri, 3 Feb 2006 17:45:32 +0000 (17:45 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 3 Feb 2006 17:45:32 +0000 (17:45 +0000)
src/jalview/gui/Jalview2XML.java

index 8406299..81a6887 100755 (executable)
@@ -309,8 +309,10 @@ public class Jalview2XML
                 Annotation an = new Annotation();\r
                 an.setDescription(aa[i].description);\r
                 if(aa[i].graph>0)\r
+                {\r
                   an.setGraph(true);\r
-\r
+                  an.setGraphType(aa[i].graph);\r
+                }\r
                 an.setLabel(aa[i].label);\r
 \r
                 AnnotationElement ae;\r
@@ -720,7 +722,7 @@ public class Jalview2XML
                 {\r
                     jaa = new jalview.datamodel.AlignmentAnnotation(an[i].getLabel(),\r
                             an[i].getDescription(), anot, 0, 0,\r
-                            jalview.datamodel.AlignmentAnnotation.BAR_GRAPH);\r
+                            an[i].getGraphType());\r
                 }\r
                 else\r
                 {\r