From: Jim Procter Date: Sun, 18 Jan 2015 15:29:57 +0000 (+0000) Subject: JAL-1628 ColumnSelection method to hide insertions for a given sequence X-Git-Tag: Jalview_2_9~108^2~23 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9d35459dd5bc7805b0e52e11f50040143243fdea;p=jalview.git JAL-1628 ColumnSelection method to hide insertions for a given sequence --- diff --git a/src/jalview/datamodel/ColumnSelection.java b/src/jalview/datamodel/ColumnSelection.java index f414d13..f5f792c 100644 --- a/src/jalview/datamodel/ColumnSelection.java +++ b/src/jalview/datamodel/ColumnSelection.java @@ -1265,4 +1265,19 @@ public class ColumnSelection } } } + + /** + * mark the columns corresponding to gap characters as hidden in the column + * selection + * + * @param sr + */ + public void hideInsertionsFor(SequenceI sr) + { + List inserts = sr.getInsertions(); + for (int[] r : inserts) + { + hideColumns(r[0], r[1]); + } + } }