From 48b79dd91c3d96b84a1a74aa0217c7c32c3107ef Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 20 Sep 2005 13:14:09 +0000 Subject: [PATCH] Align labels format left --- src/jalview/gui/TreeCanvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 1.7.10.2