From 20ce9361380c461b8a7053100207034314e56e23 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 12 Dec 2017 11:17:32 +0000 Subject: [PATCH] JAL-2844 moved line drawing code --- .../src/org/forester/archaeopteryx/TreePanel.java | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/forester/java/src/org/forester/archaeopteryx/TreePanel.java b/forester/java/src/org/forester/archaeopteryx/TreePanel.java index 3b3977d..c79908e 100644 --- a/forester/java/src/org/forester/archaeopteryx/TreePanel.java +++ b/forester/java/src/org/forester/archaeopteryx/TreePanel.java @@ -5684,13 +5684,7 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee final int graphics_file_height, final int graphics_file_x, final int graphics_file_y ) { - if (_partition_tree) { -// float threshold = (_clicked_x - _root_x) / (_furthest_node_x - _root_x); -// drawLine( _clicked_x, 0, _clicked_x, getHeight(),g); - - _partition_tree = false; - } - + if ( ( _phylogeny == null ) || _phylogeny.isEmpty() ) { return; } @@ -5891,8 +5885,19 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee g.setTransform( _at ); paintOvRectangle( g ); } - } + + + } +// if (_partition_tree) { +// g.setColor( Color.BLACK ); +// float threshold = (_clicked_x - _root_x) / (_furthest_node_x - _root_x); +// drawLine( _clicked_x, 0, _clicked_x, getHeight(),g); +// +// _partition_tree = false; +// } } + + final void recalculateMaxDistanceToRoot() { _max_distance_to_root = PhylogenyMethods.calculateMaxDistanceToRoot( getPhylogeny() ); -- 1.7.10.2