From 75ab810518acfbe2c8f478bda265e969c1d411b5 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Wed, 29 Nov 2017 12:07:49 +0000 Subject: [PATCH] JAL-2844 temporary kludge to draw a line --- src/jalview/ext/archaeopteryx/JalviewBinding.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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; -- 1.7.10.2