From 0002d6c015a12da3ba7ce22934e6a311a3f90682 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 29 Nov 2017 13:20:07 +0000 Subject: [PATCH] JAL-2844 somewhat better repainting --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index 393e29e..2bacfd5 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -177,12 +177,9 @@ public final class JalviewBinding partitionTree(e.getX()); } PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId()); - treeView.repaint(); - // MOVE - Graphics g = treeView.getGraphics(); - int panelHeight = treeView.getHeight(); - g.drawLine(e.getX(), 0, e.getX(), panelHeight); + + } }); @@ -232,6 +229,7 @@ public final class JalviewBinding } + treeView.repaint(); } @@ -250,11 +248,13 @@ public final class JalviewBinding if (longestBranch != 0) { - // double relativeTreeWidth = longestBranch / viewWidth; + // MOVE + Graphics g = treeView.getGraphics(); + int panelHeight = treeView.getHeight(); + g.drawLine(x, 0, x, panelHeight); float rootX = tree.getRoot().getXcoord(); - double threshold = ((double) x - rootX) / longestBranch; List foundNodes = getNodesAboveThreshold(threshold, longestBranch, tree.getRoot()); -- 1.7.10.2