From 1b5ee75e7538b6229da397b28a91296e612d23e8 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 23 Apr 2007 15:11:55 +0000 Subject: [PATCH] distinct methods for getting references to selected sequences or getting new seuqence objects corresponding to selection. --- src/jalview/gui/AlignViewport.java | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/AlignViewport.java b/src/jalview/gui/AlignViewport.java index f1b7be3..88a6e37 100755 --- a/src/jalview/gui/AlignViewport.java +++ b/src/jalview/gui/AlignViewport.java @@ -1466,8 +1466,10 @@ public class AlignViewport } /** - * This method returns the a new SequenceI [] with - * the selection sequence and start and end points adjusted + * This method returns an array of new SequenceI objects + * derived from the whole alignment or just the current + * selection with start and end points adjusted + * @note if you need references to the actual SequenceI objects in the alignment or currently selected then use getSequenceSelection() * @return String[] */ public SequenceI[] getSelectionAsNewSequence() @@ -1477,6 +1479,10 @@ public class AlignViewport if (selectionGroup == null) { sequences = alignment.getSequencesArray(); + for (int i=0; i