- if ( DRAW_MEAN_COUNTS && node.isInternal() ) {
- final List<PhylogenyNode> ec = node.getAllExternalDescendants();
- double sum = 0;
- int count = 0;
- for( final PhylogenyNode phylogenyNode : ec ) {
- count++;
- if ( phylogenyNode.getNodeData().getBinaryCharacters() != null ) {
- sum += phylogenyNode.getNodeData().getBinaryCharacters().getPresentCount();
- }
- }
- final double mean = ForesterUtil.round( sum / count, 1 );
- TreePanel.drawString( " " + node.getNodeData().getBinaryCharacters().getPresentCount() + " ["
- + mean + "]", node.getXcoord() + x + 4 + half_box_size, node.getYcoord()
- + ( getTreeFontSet()._fm_large.getAscent() / down_shift_factor ), g );
- }
- else {
- TreePanel.drawString( " " + node.getNodeData().getBinaryCharacters().getPresentCount(),
- node.getXcoord() + x + 4 + half_box_size,
- node.getYcoord()
- + ( getTreeFontSet()._fm_large.getAscent() / down_shift_factor ),
- g );
- }
+ TreePanel.drawString( " " + node.getNodeData().getBinaryCharacters().getPresentCount(),
+ node.getXcoord() + x + 4 + half_box_size,
+ node.getYcoord()
+ + ( getTreeFontSet()._fm_large.getAscent() / down_shift_factor ),
+ g );