From: amwaterhouse Date: Tue, 20 Sep 2005 13:14:09 +0000 (+0000) Subject: Align labels format left X-Git-Tag: Release_2_06~42 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=48b79dd91c3d96b84a1a74aa0217c7c32c3107ef;p=jalview.git Align labels format left --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 9524544..b4fd746 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -195,7 +195,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, if (showDistances && (node.dist > 0)) { - nodeLabel = new Format("%5.2f").form(node.dist).trim(); + nodeLabel = new Format("%-.2f").form(node.dist); } if (showBootstrap) @@ -273,7 +273,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, if (showDistances && (node.dist > 0)) { - g.drawString(new Format("%5.2f").form(node.dist).trim(), xstart+2, + g.drawString(new Format("%-.2f").form(node.dist).trim(), xstart+2, ypos - 2); } }