Format label left align
authoramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:21:13 +0000 (13:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:21:13 +0000 (13:21 +0000)
src/jalview/appletgui/TreeCanvas.java

index 47bebbe..38d23db 100755 (executable)
@@ -160,7 +160,7 @@ public class TreeCanvas
       String nodeLabel = "";\r
       if (showDistances && node.dist > 0)\r
       {\r
-        nodeLabel = new Format("%5.2f").form(node.dist);\r
+        nodeLabel = new Format("%-.2f").form(node.dist);\r
       }\r
       if (showBootstrap)\r
       {\r
@@ -228,7 +228,7 @@ public class TreeCanvas
 \r
       if (showDistances && node.dist > 0)\r
       {\r
-        g.drawString(new Format("%5.2f").form(node.dist), xstart, ypos - 5);\r
+        g.drawString(new Format("%-.2f").form(node.dist), xstart, ypos - 5);\r
       }\r
 \r
     }\r