From: amwaterhouse Date: Fri, 3 Feb 2006 17:40:49 +0000 (+0000) Subject: has ref to annotation X-Git-Tag: Root_VamJalview_2_07b+~181 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=68b63b7225615d09b8b870681fd59f11a0167fe7;p=jalview.git has ref to annotation --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 65537ae..d35a05b 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -42,6 +42,9 @@ public class Sequence implements SequenceI String vamsasId; Vector dbrefs; + /** This annotation is displayed below the alignment but the + * positions are tied to the residues of this sequence */ + Vector annotation; /** DOCUMENT ME!! */ public Vector sequenceFeatures; @@ -574,4 +577,24 @@ public class Sequence implements SequenceI return datasetSequence; } + public AlignmentAnnotation [] getAnnotation() + { + if(annotation==null) + return null; + + AlignmentAnnotation [] ret = new AlignmentAnnotation[annotation.size()]; + for(int r = 0; r