SymWithProps original_child = (SymWithProps) annot2protein.getChild(i);
for (int j = 0; j < count2; j++) {
SeqSymmetry grandchild = child.getChild(j);
SeqSpan gSpan = grandchild.getSpan(vseq);
LabelledRectGlyph cglyph = new LabelledRectGlyph();
if(i%2 == 0) {
cglyph.setColor(color);
}
else {
cglyph.setColor(color.darker());
}
String spanno = "Span " + String.valueOf(i+1) + " of ";
String interpro = (String) ((SymWithProps)annot2protein).getProperty("InterPro Name");
if(interpro != null){
spanno += interpro;
}
cglyph.setText(spanno);
cglyph.setCoords(gSpan.getMin(), 0, gSpan.getLength(), 20);
aGlyph.addChild(cglyph);
seqmap.setDataModel(cglyph, original_child);
original_child.setProperty("type", "protspan");
}
}