+++ /dev/null
-package jalview.ext.archaeopteryx;
-
-import jalview.ext.treeviewer.ExternalTreePanelI;
-import jalview.ext.treeviewer.ExternalTreeViewerFrameI;
-
-import org.forester.archaeopteryx.MainFrame;
-
-public class AptxFrame implements ExternalTreeViewerFrameI
-{
- private final MainFrame aptxApp;
-
- public AptxFrame(MainFrame aptx)
- {
- aptxApp = aptx;
-
-
-
- }
-
- @Override
- public ExternalTreePanelI getTreePanel()
- {
- ExternalTreePanelI aptxPanel = new AptxTreePanel(
- aptxApp.getMainPanel().getCurrentTreePanel());
- return aptxPanel;
- }
-}
+++ /dev/null
-package jalview.ext.archaeopteryx;
-
-import jalview.ext.treeviewer.ExternalTreePanelI;
-
-public class AptxTreePanel implements ExternalTreePanelI
-{
- private final org.forester.archaeopteryx.TreePanel treeView;
-
- public AptxTreePanel(org.forester.archaeopteryx.TreePanel aptxTreePanel)
- {
- treeView = aptxTreePanel;
-
- }
-}
+++ /dev/null
-package jalview.ext.archaeopteryx;
-
-import jalview.ext.treeviewer.ExternalTreeI;
-import jalview.ext.treeviewer.ExternalTreeNodeI;
-
-import org.forester.phylogeny.Phylogeny;
-
-public class Tree implements ExternalTreeI
-{
- private final Phylogeny tree;
-
- public Tree(Phylogeny aptxTree)
- {
- tree = aptxTree;
- }
-
- @Override
- public Phylogeny getOriginalTree()
- {
- return tree;
-
- }
-
- @Override
- public ExternalTreeNodeI getRoot()
- {
- ExternalTreeNodeI root = new TreeNode(tree.getRoot());
- return root;
- }
-
- @Override
- public void setTreeName(String name)
- {
- tree.setName(name);
-
- }
-
- @Override
- public ExternalTreeNodeI getNodeWithName(String name)
- {
- return new TreeNode(tree.getNode(name));
-
- }
-
- @Override
- public String[] getAllLeafNames()
- {
- return tree.getAllExternalNodeNames();
- }
-}
+++ /dev/null
-package jalview.ext.archaeopteryx;
-
-import jalview.ext.treeviewer.ExternalTreeNodeI;
-
-import java.util.List;
-
-import org.forester.phylogeny.PhylogenyNode;
-
-public class TreeNode implements ExternalTreeNodeI
-{
- private final PhylogenyNode node;
-
- public TreeNode(PhylogenyNode aptxNode)
- {
- node = aptxNode;
- }
-
- @Override
- public PhylogenyNode getOriginalNode()
- {
- return node;
- }
-
- @Override
- public String getNodeName()
- {
- return node.getName();
- }
-
- @Override
- public List<ExternalTreeNodeI> getChildren()
- {
- // return node.getDescendants();
- return null;
-
- }
-
-
-}