AlignmentAnnotation sann[] = sequences[i].getAnnotation();
if (sann == null)
continue;
- for (int avnum = 0; avnum < alview.length; avnum++)
+ for (int avnum=0;avnum<alview.length; avnum++)
{
-
- if (alview[avnum] != alignment)
+ if (alview[avnum]!=alignment)
{
// duplicate in a view other than the one with input focus
- int avwidth = alview[avnum].getWidth() + 1;
-
- // this relies on sann being preserved after we modify the sequence's annotation array
+ int avwidth = alview[avnum].getWidth()+1;
+ // this relies on sann being preserved after we
+ // modify the sequence's annotation array for each duplication
for (int a=0; a<sann.length; a++)
{
AlignmentAnnotation newann = new AlignmentAnnotation(sann[a]);
-
sequences[i].addAlignmentAnnotation(newann);
newann.padAnnotation(avwidth);
alview[avnum].addAnnotation(newann); // annotation was duplicated earlier