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,
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,