X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentI.java;h=82aff3329e5190320ad2de32b8726bf69f9bc478;hb=a96d51f58325f8429c5792ae554243de5628d62a;hp=ef1862e550b3d77fff7aeefc08054bf442b3b3b9;hpb=6969476ada54b3f4fdcfabf7286b35eb7a6ba71c;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index ef1862e..82aff33 100755 --- a/src/jalview/datamodel/AlignmentI.java +++ b/src/jalview/datamodel/AlignmentI.java @@ -184,8 +184,9 @@ public interface AlignmentI * vector. Otherwise, it will do nothing. * * @param aa the annotation to delete + * @return true if annotation was deleted from this alignment. */ - public void deleteAnnotation(AlignmentAnnotation aa); + public boolean deleteAnnotation(AlignmentAnnotation aa); /** * Get the annotation associated with this alignment @@ -266,4 +267,32 @@ public interface AlignmentI * @return hashtable of alignment properties (or null if none are defined) */ public Hashtable getProperties(); + + /** + * add a reference to a frame of aligned codons for this alignment + * @param codons + */ + public void addCodonFrame(AlignedCodonFrame codons); + /** + * remove a particular codon frame reference from this alignment + * @param codons + * @return true if codon frame was removed. + */ + public boolean removeCodonFrame(AlignedCodonFrame codons); + /** + * get all codon frames associated with this alignment + * @return + */ + public AlignedCodonFrame[] getCodonFrames(); + /** + * get a particular codon frame + * @param index + * @return + */ + public AlignedCodonFrame getCodonFrame(int index); + /** + * get codon frames involving sequenceI + */ + public AlignedCodonFrame[] getCodonFrame(SequenceI seq); + }