JAL-2844 temporary kludge to draw a line
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 29 Nov 2017 12:07:49 +0000 (12:07 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Wed, 29 Nov 2017 12:07:49 +0000 (12:07 +0000)
src/jalview/ext/archaeopteryx/JalviewBinding.java

index e339d15..393e29e 100644 (file)
@@ -178,6 +178,11 @@ public final class JalviewBinding
       }
         PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId());
         treeView.repaint();
+
+        // MOVE
+        Graphics g = treeView.getGraphics();
+        int panelHeight = treeView.getHeight();
+        g.drawLine(e.getX(), 0, e.getX(), panelHeight);
       }
     });
 
@@ -244,9 +249,7 @@ public final class JalviewBinding
       double longestBranch = tree.calculateHeight(true);
       if (longestBranch != 0)
       {
-        Graphics g = treeView.getGraphics();
-        int panelHeight = treeView.getHeight();
-        g.drawLine(x, 0, x, panelHeight);
+
 
         // double relativeTreeWidth = longestBranch / viewWidth;