in progress
[jalview.git] / forester / java / src / org / forester / phylogeny / data / BranchColor.java
index 7d47e24..5b5ff65 100644 (file)
@@ -91,6 +91,9 @@ public class BranchColor implements PhylogenyData {
         PhylogenyDataUtil.appendElement( writer, PhyloXmlMapping.COLOR_RED, getValue().getRed() + "", indentation );
         PhylogenyDataUtil.appendElement( writer, PhyloXmlMapping.COLOR_GREEN, getValue().getGreen() + "", indentation );
         PhylogenyDataUtil.appendElement( writer, PhyloXmlMapping.COLOR_BLUE, getValue().getBlue() + "", indentation );
+        if ( getValue().getAlpha() != 255 ) {
+            PhylogenyDataUtil.appendElement( writer, PhyloXmlMapping.COLOR_ALPHA, getValue().getAlpha() + "", indentation );
+        }
         writer.write( ForesterUtil.LINE_SEPARATOR );
         writer.write( indentation );
         PhylogenyDataUtil.appendClose( writer, PhyloXmlMapping.COLOR );