X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignment.java;h=15a1455c446cb5aa77501507279a88ad48d8e6a8;hb=5d2e589a842cf831e4fdeff6b8ed7e7ce6729fd5;hp=86d2c0e4e2ca02264b95132d26eedef5618ecb8a;hpb=cd1ded4a9a6f3478f3b704c9c97fd323ac5dbdd7;p=jalview.git diff --git a/src/jalview/datamodel/Alignment.java b/src/jalview/datamodel/Alignment.java index 86d2c0e..15a1455 100755 --- a/src/jalview/datamodel/Alignment.java +++ b/src/jalview/datamodel/Alignment.java @@ -11,8 +11,11 @@ public class Alignment implements AlignmentI protected Vector sequences; protected Vector groups = new Vector(); - protected ArrayList superGroup = new ArrayList(); + protected Vector superGroup = new Vector(); protected char gapCharacter = '-'; + public AlignmentAnnotation [] annotations; + + public boolean featuresAdded = false; /** Make an alignment from an array of Sequences. * @@ -318,18 +321,19 @@ public class Alignment implements AlignmentI public SequenceGroup [] findAllGroups(SequenceI s) { - ArrayList temp = new ArrayList(); + Vector temp = new Vector(); for (int i = 0; i < this.groups.size();i++) { SequenceGroup sg = (SequenceGroup)groups.elementAt(i); if (sg.sequences.contains(s)) - temp.add(sg); + temp.addElement(sg); } SequenceGroup [] ret = new SequenceGroup[temp.size()]; - temp.toArray( ret ); + for(int i=0; i 1) + for (i = 0; i < aSize-1; i++) + temp[i] = annotations[i]; + + temp[i] = aa; + + annotations = temp; } + public AlignmentAnnotation[] getAlignmentAnnotation() + { + return annotations; + } + }