From: kjvdheide Date: Wed, 29 Nov 2017 13:20:07 +0000 (+0000) Subject: JAL-2844 somewhat better repainting X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0002d6c015a12da3ba7ce22934e6a311a3f90682;p=jalview.git JAL-2844 somewhat better repainting --- 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());