From 3ac81fd809de84210546a5cd39bab1778320488e Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Mon, 27 Nov 2017 17:07:20 +0000 Subject: [PATCH] JAL-2844 added selection threshold (non-adjusted calculation for now) --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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); } } -- 1.7.10.2