StringBuffer viewString = new StringBuffer(""); //$NON-NLS-1$
int pos = targetPoly == 0 ? variantIndex : -1;
int index = 0;
List<SequenceElement> el = getElements();
for (int i = 0;i<el.size();i++) {
SequenceStringElement se = (SequenceStringElement) el.get(i);
if (se instanceof InDel) {
viewString.append(inDelBeginSymbol + se.seqString() + inDelEndSymbol);
index += se.length();
}
else {
viewString.append(se.seqString());
index += se.length();
}
if (index == pos) {
viewString.append(positionSymbol);
}