From: kjvdheide Date: Mon, 27 Nov 2017 17:07:20 +0000 (+0000) Subject: JAL-2844 added selection threshold (non-adjusted calculation for now) X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=3ac81fd809de84210546a5cd39bab1778320488e;p=jalview.git JAL-2844 added selection threshold (non-adjusted calculation for now) --- diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index 5ddc336..95c07ef 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -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); } }