From d0d60b415036c2c67eca686e443331bf071e2626 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 25 Jan 2018 13:48:28 +0000 Subject: [PATCH] JAL-2844 branch colour setter improved --- src/jalview/ext/archaeopteryx/TreeNode.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/jalview/ext/archaeopteryx/TreeNode.java b/src/jalview/ext/archaeopteryx/TreeNode.java index b43e9b4..752826b 100644 --- a/src/jalview/ext/archaeopteryx/TreeNode.java +++ b/src/jalview/ext/archaeopteryx/TreeNode.java @@ -12,7 +12,6 @@ import java.util.Map; import org.forester.phylogeny.PhylogenyMethods; import org.forester.phylogeny.PhylogenyNode; -import org.forester.phylogeny.data.BranchColor; public class TreeNode implements TreeNodeI { @@ -21,11 +20,16 @@ public class TreeNode implements TreeNodeI private SequenceI nodeSeq; private static Map originalNodes = new HashMap<>( - 500); // prolly make this size dynamic + 500); // prolly make this size dynamic? private static Map wrappedNodes = new HashMap<>( 500); + /** + * Please don't use me directly. + * + * @param aptxNode + */ private TreeNode(PhylogenyNode aptxNode) { node = aptxNode; @@ -117,7 +121,7 @@ public class TreeNode implements TreeNodeI @Override public void setBranchColor(Color branchColor) { - node.getBranchData().setBranchColor(new BranchColor(branchColor)); + PhylogenyMethods.setBranchColorValue(node, branchColor); } -- 1.7.10.2