X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FNodePanel.java;h=7646342b348e1e81acf9fa0024f7785c9f0fd9cd;hb=0fd0a770a96b63d7aede3af5f1e47c29a85595c6;hp=ebed53080cc5a491573e7221f623dec60d9a8bfc;hpb=c94d818879d93f5a794f905a6312982d348b2752;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/NodePanel.java b/forester/java/src/org/forester/archaeopteryx/NodePanel.java index ebed530..7646342 100644 --- a/forester/java/src/org/forester/archaeopteryx/NodePanel.java +++ b/forester/java/src/org/forester/archaeopteryx/NodePanel.java @@ -226,18 +226,7 @@ class NodePanel extends JPanel implements TreeSelectionListener { addSubelement( category, CONFIDENCE, conf.asText().toString() ); } } - if ( ( phylogeny_node.getBranchData().getBranchWidth() != null ) - && ( phylogeny_node.getBranchData().getBranchWidth().getValue() != BranchWidth.BRANCH_WIDTH_DEFAULT_VALUE ) ) { - addSubelement( category, - NODE_BRANCH_WIDTH, - ForesterUtil.FORMATTER_3.format( phylogeny_node.getBranchData().getBranchWidth().getValue() ) ); - } - if ( ( phylogeny_node.getBranchData().getBranchColor() != null ) ) { - Color c = phylogeny_node.getBranchData().getBranchColor().getValue(); - addSubelement( category, - NODE_BRANCH_COLOR, - c.getRed() + ", " + c.getGreen() + ", "+ c.getBlue() ); - } + if ( !phylogeny_node.isExternal() ) { addSubelement( category, "Children", String.valueOf( phylogeny_node.getNumberOfDescendants() ) ); addSubelement( category, @@ -265,6 +254,18 @@ class NodePanel extends JPanel implements TreeSelectionListener { addSubelement( category, "Distance to root", String.valueOf( ForesterUtil.FORMATTER_6.format( d ) ) ); } } + if ( ( phylogeny_node.getBranchData().getBranchWidth() != null ) + && ( phylogeny_node.getBranchData().getBranchWidth().getValue() != BranchWidth.BRANCH_WIDTH_DEFAULT_VALUE ) ) { + addSubelement( category, + NODE_BRANCH_WIDTH, + ForesterUtil.FORMATTER_3.format( phylogeny_node.getBranchData().getBranchWidth().getValue() ) ); + } + if ( ( phylogeny_node.getBranchData().getBranchColor() != null ) ) { + Color c = phylogeny_node.getBranchData().getBranchColor().getValue(); + addSubelement( category, + NODE_BRANCH_COLOR, + c.getRed() + ", " + c.getGreen() + ", "+ c.getBlue() ); + } } private static void addBinaryCharacters( final DefaultMutableTreeNode top,