continue;
}
+ an.setVisible(aa[i].visible);
+
an.setDescription(aa[i].description);
if (aa[i].sequenceRef != null)
for (int aa = 0; aa < ae.length && aa < anot.length; aa++)
{
+ if(ae[aa].getPosition()>=anot.length)
+ continue;
+
anot[ae[aa].getPosition()] = new jalview.datamodel.Annotation(
ae[aa].getDisplayCharacter(),
if (an[i].getSequenceRef() != null)
{
- jaa.createSequenceMapping(
- al.findName(an[i].getSequenceRef()), 1, true
- );
- al.findName(an[i].getSequenceRef()).addAlignmentAnnotation(jaa);
+ if (al.findName(an[i].getSequenceRef()) != null)
+ {
+ jaa.createSequenceMapping(
+ al.findName(an[i].getSequenceRef()), 1, true
+ );
+ al.findName(an[i].getSequenceRef()).addAlignmentAnnotation(jaa);
+ }
}
if (an[i].hasScore())
{
jaa.setScore(an[i].getScore());
}
+
+ if(an[i].hasVisible())
+ jaa.visible = an[i].getVisible();
+
al.addAnnotation(jaa);
}
}