JAL-2844 added selection threshold (non-adjusted calculation for now)
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 27 Nov 2017 17:07:20 +0000 (17:07 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 27 Nov 2017 17:07:20 +0000 (17:07 +0000)
src/jalview/ext/archaeopteryx/JalviewBinding.java

index 5ddc336..95c07ef 100644 (file)
@@ -98,7 +98,6 @@ public final class JalviewBinding
     treeView.addMouseListener(this);
     PaintRefresher.Register(treeView, parentAvport.getSequenceSetId());
 
-
     treeTabs.addChangeListener(new ChangeListener()
     {
 
@@ -227,6 +226,7 @@ public final class JalviewBinding
   public void partitionTree(final int x)
   {
     Phylogeny tree = treeView.getPhylogeny();
+
     if (!tree.isEmpty())
     {
       double treeDepth = tree.calculateHeight(true);
@@ -236,14 +236,9 @@ public final class JalviewBinding
         int panelHeight = treeView.getHeight();
         g.drawLine(x, 0, x, panelHeight);
 
+        int viewWidth = treeView.getWidth();
+        float threshold = (float) x / (float) viewWidth;
 
-        // int viewWidth = treeView.getWidth();
-
-        // System.out.println("selection");
-        // System.out.println(x);
-        // System.out.println("-------------");
-        // System.out.println("width");
-        // System.out.println(viewWidth);
       }
     }