X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentI.java;h=2b210cc9eef479fc628f4585e0fb9c6fb0aa4ee8;hb=6bbf32c80d96e3ee32d38b9eb1478cd9dd249734;hp=3e9e265efde038461f63eea0435003629296e119;hpb=c39e588784c0fbb64c7dabfcae8db4faedde10e6;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index 3e9e265..2b210cc 100755 --- a/src/jalview/datamodel/AlignmentI.java +++ b/src/jalview/datamodel/AlignmentI.java @@ -157,7 +157,6 @@ public interface AlignmentI */ public Vector getGroups(); - public void destroyAlignment(); /** * Deletes all groups from this alignment. @@ -166,55 +165,72 @@ public interface AlignmentI /** * Adds a new AlignmentAnnotation to this alignment + * @note Care should be taken to ensure that annotation is at + * least as wide as the longest sequence in the alignment + * for rendering purposes. */ public void addAnnotation(AlignmentAnnotation aa); - + /** + * moves annotation to a specified index in alignment annotation display stack + * @param aa the annotation object to be moved + * @param index the destination position + */ public void setAnnotationIndex(AlignmentAnnotation aa, int index); /** - * Deletes a specific AlignmentAnnotation from the alignment. - * - * @param aa DOCUMENT ME! + * Deletes a specific AlignmentAnnotation from the alignment, + * and removes its reference from any SequenceI object's annotation + * if and only if aa is contained within the alignment's annotation + * vector. + * + * @param aa the annotation to delete */ public void deleteAnnotation(AlignmentAnnotation aa); /** - * DOCUMENT ME! + * Get the annotation associated with this alignment * - * @return DOCUMENT ME! + * @return array of AlignmentAnnotation objects */ public AlignmentAnnotation[] getAlignmentAnnotation(); /** - * DOCUMENT ME! + * Change the gap character used in this alignment to 'gc' * - * @param gc DOCUMENT ME! + * @param gc the new gap character. */ public void setGapCharacter(char gc); /** - * DOCUMENT ME! + * Get the gap character used in this alignment * - * @return DOCUMENT ME! + * @return gap character */ public char getGapCharacter(); /** - * Returns true if alignment is nucleotide sequence + * Test for all nucleotide alignment * - * @return DOCUMENT ME! + * @return true if alignment is nucleotide sequence */ public boolean isNucleotide(); /** - * Set true if the alignment is a nucleotide sequence + * Set alignment to be a nucleotide sequence * - * @return */ public void setNucleotide(boolean b); + /** + * Get the associated dataset for the alignment. + * @return Alignment containing dataset sequences or null of this is a dataset. + */ public Alignment getDataset(); + /** + * Set the associated dataset for the alignment, or create one. + * @param dataset The dataset alignment or null to construct one. + */ public void setDataset(Alignment dataset); /** @@ -230,4 +246,24 @@ public interface AlignmentI * @return CigarArray */ public CigarArray getCompactAlignment(); + + /** + * Set an arbitrary key value pair for an alignment. + * Note: both key and value objects should return a + * meaningful, human readable response to .toString() + * @param key + * @param value + */ + public void setProperty(Object key, Object value); + /** + * Get a named property from the alignment. + * @param key + * @return value of property + */ + public Object getProperty(Object key); + /** + * Get the property hashtable. + * @return hashtable of alignment properties (or null if none are defined) + */ + public Hashtable getProperties(); }