import jalview.api.AlignViewportI;
import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceCollectionI;
-import jalview.datamodel.SequenceGroup;
import jalview.datamodel.SequenceI;
import java.awt.Color;
public Color findColour(char symbol, int position, SequenceI seq,
String consensusResidue, float pid)
{
+ // rather than testing if coll is a sequence group, and if so looking at
+ // ((SequenceGroup)coll).idColour
+ // we always return the sequence ID colour, in case the user has customised
+ // the displayed Id colour by right-clicking an internal node in the tree.
return (view == null) ? Color.WHITE
- : ((coll instanceof SequenceGroup)
- ? ((SequenceGroup) coll).idColour
- : view.getSequenceColour(seq));
+ : view.getSequenceColour(seq).darker();
}
@Override