public static MainFrame createInstance(
final TreeBuilder calculatedTree) // very dense method, to be split up
{
- ArchaeopteryxTreeConverter aptxTreeBuilder = new ArchaeopteryxTreeConverter(
+ ExternalTreeBuilderI<Phylogeny, PhylogenyNode> aptxTreeBuilder = new ArchaeopteryxTreeBuilder(
calculatedTree);
- Phylogeny aptxTree = aptxTreeBuilder.buildAptxTree();
+ Phylogeny aptxTree = aptxTreeBuilder.buildTree();
Phylogeny[] aptxTrees = { aptxTree }; // future possibility to load in
// several trees simultaneously
return aptxApp;
}
- public static JalviewTreeViewerBindingI bindNodesToJalviewSequences(
+ public static JalviewTreeViewerBindingI<?> bindNodesToJalviewSequences(
final MainFrame aptxApp,
final AlignmentViewport jalviewAlignViewport,
final Map<SequenceI, PhylogenyNode> alignMappedToNodes,
* @author kjvanderheide
*
*/
-public final class JalviewAptxBinding implements JalviewTreeViewerBindingI
+public final class JalviewAptxBinding
+ implements JalviewTreeViewerBindingI<PhylogenyNode>
{
private org.forester.archaeopteryx.TreePanel treeView;
+ @Override
public void showMatchingSequence(final PhylogenyNode nodeToMatch)
{
SequenceI matchingSequence = nodesBoundToSequences.get(nodeToMatch);
}
}
+ @Override
public void showMatchingChildSequences(final PhylogenyNode parentNode)
{
final List<PhylogenyNode> childNodes = PhylogenyMethods
* @author kjvanderheide
*
*/
-interface JalviewTreeViewerBindingI
+interface JalviewTreeViewerBindingI<N>
extends ActionListener, MouseListener, SelectionListener,
SelectionSource
{
public void showNodeSelectionOnAlign(MouseEvent e);
- public void treeSelectionChanged(final SequenceI sequence);
+ public void treeSelectionChanged(SequenceI sequence);
+ public void showMatchingSequence(N nodeToMatch);
+
+ public void showMatchingChildSequences(N parentNode);
}