{
// /////ONLY WORKS WITH NONE WRAPPED ALIGNMENTS
// ////////////////////////////////////////////
- int idWidth = getVisibleIdWidth(true);
+ int idWidth = getVisibleIdWidth(false);
FontMetrics fm = getFontMetrics(av.getFont());
int scaleHeight = av.charHeight + fm.getDescent();
// remove old automatic annotation
// add any new annotation
- Vector gr = av.getAlignment().getGroups(); // OrderedBy(av.getAlignment().getSequencesArray());
// intersect alignment annotation with alignment groups
AlignmentAnnotation[] aan = av.getAlignment().getAlignmentAnnotation();
}
}
}
- SequenceGroup sg;
- if (gr != null)
+ if (av.getAlignment().getGroups()!=null)
{
- for (int g = 0; g < gr.size(); g++)
+ for (SequenceGroup sg:av.getAlignment().getGroups())
{
updateCalcs = false;
- sg = (SequenceGroup) gr.elementAt(g);
if (applyGlobalSettings || !oldrfs.containsKey(sg))
{
// set defaults for this group's conservation/consensus