JAL-2795 bunch of cleanup and comments
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 3 Nov 2017 09:23:35 +0000 (09:23 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Fri, 3 Nov 2017 09:23:35 +0000 (09:23 +0000)
src/jalview/ext/archaeopteryx/AlignToArchaeopteryxConverter.java [deleted file]
src/jalview/ext/archaeopteryx/JalviewTreeViewerBinding.java [moved from src/jalview/ext/archaeopteryx/TreeViewerBindingI.java with 100% similarity]
src/jalview/gui/AlignFrame.java
src/jalview/gui/TreePanel.java

diff --git a/src/jalview/ext/archaeopteryx/AlignToArchaeopteryxConverter.java b/src/jalview/ext/archaeopteryx/AlignToArchaeopteryxConverter.java
deleted file mode 100644 (file)
index b90cf4b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-package jalview.ext.archaeopteryx;
-
-public class AlignToArchaeopteryxConverter
-{
-
-}
index 374ca0e..774a4f1 100644 (file)
@@ -3575,7 +3575,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       SequenceGroup sg = viewport.getSelectionGroup();
 
       /* Decide if the selection is a column region */
-      for (SequenceI _s : sg.getSequences())
+      for (SequenceI _s : sg.getSequences()) // port this to Archaeopteryx?
       {
         if (_s.getLength() < sg.getEndRes())
         {
index 57cff8f..55e3a1b 100755 (executable)
@@ -128,6 +128,12 @@ public class TreePanel extends GTreePanel
     return treeCanvas.av;
   }
 
+  /**
+   * Initialize a tree panel based on a calculated tree
+   * 
+   * @param ap
+   * @param tree
+   */
   void initTreePanel(AlignmentPanel ap, TreeModel tree)
   {
     buildTreeCanvas(ap);
@@ -136,12 +142,20 @@ public class TreePanel extends GTreePanel
     tl.start();
 
   }
+
+  /**
+   * Initialize a tree panel based on a loaded in tree file.
+   * 
+   * @param ap
+   * @param loadedTree
+   * @param inputData
+   */
   void initTreePanel(AlignmentPanel ap, 
-          NewickFile newTree, AlignmentView inputData)
+          NewickFile loadedTree, AlignmentView inputData)
   {
     buildTreeCanvas(ap);
 
-    TreeLoader tl = new TreeLoader(newTree, inputData);
+    TreeLoader tl = new TreeLoader(loadedTree, inputData);
     tl.start();
   }