From 35df94285f6d449af07ef2e5df60571dfe58a0d5 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 24 Jul 2009 15:09:08 +0000 Subject: [PATCH] insert annotation at specific position --- src/jalview/datamodel/AlignmentI.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/jalview/datamodel/AlignmentI.java b/src/jalview/datamodel/AlignmentI.java index f0a9ef4..186136f 100755 --- a/src/jalview/datamodel/AlignmentI.java +++ b/src/jalview/datamodel/AlignmentI.java @@ -379,6 +379,14 @@ public interface AlignmentI * Justify the sequences to the left or right by deleting and inserting gaps before the initial residue or after the terminal residue * @param right true if alignment padded to right, false to justify to left * @return true if alignment was changed + * TODO: return undo object */ public boolean justify(boolean right); + + /** + * add given annotation row at given position (0 is start, -1 is end) + * @param consensus + * @param i + */ + public void addAnnotation(AlignmentAnnotation consensus, int i); } -- 1.7.10.2