clean up + move to java1.8
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Tue, 18 Nov 2014 23:15:24 +0000 (23:15 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Tue, 18 Nov 2014 23:15:24 +0000 (23:15 +0000)
forester/java/src/org/forester/archaeopteryx/Constants.java
forester/java/src/org/forester/archaeopteryx/TreePanel.java

index 1a63bcf..144c607 100644 (file)
@@ -43,7 +43,7 @@ public final class Constants {
     public final static boolean ALLOW_DDBJ_BLAST                                              = false;
     public final static String  PRG_NAME                                                      = "Archaeopteryx";
     final static String         VERSION                                                       = "0.9901 beta";
-    final static String         PRG_DATE                                                      = "141014";
+    final static String         PRG_DATE                                                      = "141118";
     final static String         DEFAULT_CONFIGURATION_FILE_NAME                               = "_aptx_configuration_file";
     final static String[]       DEFAULT_FONT_CHOICES                                          = { "Arial", "Helvetica",
             "Verdana", "Tahoma", "Dialog", "Lucida Sans", "SansSerif", "Sans-serif", "Sans"  };
index 107a557..4d50d28 100644 (file)
@@ -520,7 +520,7 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee
                     calculateLongestExtNodeInfo();
                 }
             }
-            _length_of_longest_text = calcLengthOfLongestText();
+            //_length_of_longest_text = calcLengthOfLongestText();
             int ext_nodes = _phylogeny.getRoot().getNumberOfExternalNodes();
             final int max_depth = PhylogenyMethods.calculateMaxDepth( _phylogeny );
             if ( ext_nodes == 1 ) {
@@ -659,7 +659,7 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee
             }
             if ( sum >= max_length ) {
                 _longest_ext_node_info = max_length;
-                return;
+                // return; //FIXME why?
             }
             if ( sum > longest ) {
                 longest = sum;
@@ -672,6 +672,7 @@ public final class TreePanel extends JPanel implements ActionListener, MouseWhee
         else {
             _longest_ext_node_info = longest;
         }
+        _length_of_longest_text = calcLengthOfLongestText();
     }
 
     final void calculateScaleDistance() {