JAL-2800 added tree calc frame to AlignmentPanel
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 29 Jan 2018 17:51:12 +0000 (17:51 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Mon, 29 Jan 2018 17:51:12 +0000 (17:51 +0000)
src/jalview/gui/AlignmentPanel.java
src/jalview/gui/TreeCalculationFrame.java

index 3a1dbe8..547825f 100644 (file)
@@ -108,6 +108,8 @@ public class AlignmentPanel extends GAlignmentPanel implements
   private PropertyChangeListener propertyChangeListener;
 
   private CalculationChooser calculationDialog;
+  
+  private TreeCalculationFrame treeCalcDialog;
 
   /**
    * Creates a new AlignmentPanel object.
@@ -1929,4 +1931,14 @@ public class AlignmentPanel extends GAlignmentPanel implements
   {
     return calculationDialog;
   }
+
+  public TreeCalculationFrame getTreeCalcPanel()
+  {
+    return treeCalcDialog;
+  }
+
+  public void setTreeCalcPanel(TreeCalculationFrame treeCalcFrame)
+  {
+    this.treeCalcDialog = treeCalcFrame;
+  }
 }
index b4459e1..3a3208c 100644 (file)
@@ -12,6 +12,7 @@ public class TreeCalculationFrame extends JInternalFrame
   {
     treeCalcPanel = new TreeCalculationPanel(alignFrame);
     init();
+    alignFrame.alignPanel.setTreeCalcPanel(this);
 
 
   }
@@ -25,5 +26,14 @@ public class TreeCalculationFrame extends JInternalFrame
 
   }
 
+  public TreeCalculationPanel getTreeCalcPanel()
+  {
+    return treeCalcPanel;
+  }
+
+  public void setTreeCalcPanel(TreeCalculationPanel treeCalcPanel)
+  {
+    this.treeCalcPanel = treeCalcPanel;
+  }
 
 }