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)
+ {
+ if (showDistances)
+ {
+ nodeLabel = nodeLabel + " : ";
+ }
+
+ nodeLabel = nodeLabel + String.valueOf(node.bootstrap);
+ }
+
+ if (!nodeLabel.equals(""))
+ {
+ g.drawString(nodeLabel, xstart + 2, ypos - 2);
}
}
}