import jalview.analysis.TreeModel;
import jalview.api.AlignViewportI;
import jalview.datamodel.AlignmentAnnotation;
+import jalview.datamodel.Annotation;
import jalview.datamodel.BinaryNode;
import jalview.datamodel.ColumnSelection;
import jalview.datamodel.ContactMatrixI;
cm.setColorForGroup(gp, colors.get(gp));
}
}
+ // stash colors in linked annotation row.
+ // doesn't work yet. TESTS!
+ int sstart=aa.sequenceRef!=null ? aa.sequenceRef.getStart()-1 : 0;
+ for (BitSet gp : colors.keySet())
+ {
+ Color gpcol = colors.get(gp);
+ for (int p = gp.nextSetBit(0); p >= 0; p = gp.nextSetBit(p + 1))
+ {
+ Annotation ae = aa.getAnnotationForPosition(p+sstart);
+ if (ae != null)
+ {
+ ae.colour = gpcol.brighter().darker();
+ }
+ }
+ }
}
}