nodeLabel = new Format("%-.2f").form(node.dist);
}
- if (showBootstrap)
+ if (showBootstrap && node.bootstrap>-1)
{
if (showDistances)
{
nodeLabel = nodeLabel + " : ";
}
- nodeLabel = nodeLabel + String.valueOf(node.getBootstrap());
+ nodeLabel = nodeLabel + String.valueOf(node.bootstrap);
}
if (!nodeLabel.equals(""))
g.drawLine( (int) (height * scale) + offx, ystart,
(int) (height * scale) + offx, yend);
+ String nodeLabel = "";
+
if (showDistances && (node.dist > 0))
{
- g.drawString(new Format("%-.2f").form(node.dist).trim(), xstart + 2,
- ypos - 2);
+ nodeLabel = new Format("%-.2f").form(node.dist);
+ }
+
+ if (showBootstrap && node.bootstrap>-1)
+ {
+ if (showDistances)
+ {
+ nodeLabel = nodeLabel + " : ";
+ }
+
+ nodeLabel = nodeLabel + String.valueOf(node.bootstrap);
+ }
+
+ if (!nodeLabel.equals(""))
+ {
+ g.drawString(nodeLabel, xstart + 2, ypos - 2);
}
}
}
return;
}
- if ( (node.left() == null) && (node.right() == null))
+ if ( (node.left() == null) && (node.right() == null)) // TODO: internal node
{
node.color = c;
{
Color col = JColorChooser.showDialog(this, "Select Sub-Tree Colour",
highlightNode.color);
-
- setColor(highlightNode, col);
+ if (col!=null)
+ {
+ setColor(highlightNode, col);
+ }
}
else
if (evt.getClickCount() > 1)
av.alignment.getWidth() - 1);
sg.setName("JTreeGroup:" + sg.hashCode());
-
+ sg.setIdColour(col);
AlignmentPanel[] aps = getAssociatedPanels();
for (int a = 0; a < aps.length; a++)
{