SequenceI repseq = getSequenceAt(0);
setSeqrep(repseq);
HiddenColumns cs = new HiddenColumns();
- cs.hideInsertionsFor(repseq.getInsertions());
+ cs.hideList(repseq.getInsertions());
setHiddenColumns(cs);
}
}
}
/**
- * mark the columns corresponding to gap characters as hidden in the column
- * selection
+ * hide a list of ranges
*
- * @param insertions
+ * @param ranges
*/
- public void hideInsertionsFor(List<int[]> inserts)
+ public void hideList(List<int[]> ranges)
{
try
{
LOCK.writeLock().lock();
- for (int[] r : inserts)
+ for (int[] r : ranges)
{
hideColumns(r[0], r[1]);
}
new SequenceI[]
{ new Sequence("refseqGaptest", "KTDVTI----------NFI-----G----L") });
HiddenColumns cs = new HiddenColumns();
- cs.hideInsertionsFor(al.getSequenceAt(0).getInsertions());
+ cs.hideList(al.getSequenceAt(0).getInsertions());
assertEquals("G", ""
+ al.getSequenceAt(0).getCharAt(cs.visibleToAbsoluteColumn(9)));
SequenceI seq1 = new Sequence("TEST1", "GAL---MFW-KQESPVICY--HRNDT");
SequenceI seq2 = new Sequence("TEST1", "GALMFWKQESPVICYHRNDT");
- h.hideInsertionsFor(seq2.getInsertions());
+ h.hideList(seq2.getInsertions());
assertTrue(h.equals(h2));
- h.hideInsertionsFor(seq1.getInsertions());
+ h.hideList(seq1.getInsertions());
h2.hideColumns(3, 5);
h2.hideColumns(9, 9);
h2.hideColumns(19, 20);