From: kjvdheide Date: Wed, 29 Nov 2017 12:07:49 +0000 (+0000) Subject: JAL-2844 temporary kludge to draw a line X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=75ab810518acfbe2c8f478bda265e969c1d411b5;p=jalview.git JAL-2844 temporary kludge to draw a line --- diff --git a/src/jalview/ext/archaeopteryx/JalviewBinding.java b/src/jalview/ext/archaeopteryx/JalviewBinding.java index e339d15..393e29e 100644 --- a/src/jalview/ext/archaeopteryx/JalviewBinding.java +++ b/src/jalview/ext/archaeopteryx/JalviewBinding.java @@ -178,6 +178,11 @@ public final class JalviewBinding } PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId()); treeView.repaint(); + + // MOVE + Graphics g = treeView.getGraphics(); + int panelHeight = treeView.getHeight(); + g.drawLine(e.getX(), 0, e.getX(), panelHeight); } }); @@ -244,9 +249,7 @@ public final class JalviewBinding double longestBranch = tree.calculateHeight(true); if (longestBranch != 0) { - Graphics g = treeView.getGraphics(); - int panelHeight = treeView.getHeight(); - g.drawLine(x, 0, x, panelHeight); + // double relativeTreeWidth = longestBranch / viewWidth;