Align labels format left
authoramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:14:09 +0000 (13:14 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:14:09 +0000 (13:14 +0000)
src/jalview/gui/TreeCanvas.java

index 9524544..b4fd746 100755 (executable)
@@ -195,7 +195,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
 \r
             if (showDistances && (node.dist > 0))\r
             {\r
-                nodeLabel = new Format("%5.2f").form(node.dist).trim();\r
+                nodeLabel = new Format("%-.2f").form(node.dist);\r
             }\r
 \r
             if (showBootstrap)\r
@@ -273,7 +273,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable,
 \r
             if (showDistances && (node.dist > 0))\r
             {\r
-                g.drawString(new Format("%5.2f").form(node.dist).trim(), xstart+2,\r
+                g.drawString(new Format("%-.2f").form(node.dist).trim(), xstart+2,\r
                     ypos - 2);\r
             }\r
         }\r