for (int i = 0; i < sg.getSize(false); i++)
{
SequenceI seq = sg.getSequenceAt(i);
- int index = viewport.getAlignment().findIndex(seq);
-
seq.deleteChars(sg.getStartRes(), sg.getEndRes() + 1);
// If the cut affects all sequences, remove highlighted columns
viewport.getAlignment().deleteSequence(seq);
PaintRefresher.Refresh(alignPanel,alignPanel.av.getSequenceSetId(),seq,null);
}
- else
- {
- viewport.getAlignment().getSequences().setElementAt(seq, index);
- }
}
viewport.setSelectionGroup(null);
return ShowNewickTree(nf, title, null, w, h, x, y);
}
/**
- * Add a treeviewer for the tree extracted from a newick file object to the current alignment view
+ * Add a treeviewer for the tree extracted from a newick file object to the current alignment view
*
* @param nf the tree
* @param title tree viewer title
{
return viewport;
}
-}
\ No newline at end of file
+}