public ColourSchemeI cs;
int startRes = 0;
int endRes = 0;
- Color outlineColour = Color.black;
+ public Color outlineColour = Color.black;
+ public Color idColour = null;
public int thresholdTextColour = 0;
public Color textColour = Color.black;
public Color textColour2 = Color.white;
return seqs;
}
+
+ /**
+ * @return the idColour
+ */
+ public Color getIdColour()
+ {
+ return idColour;
+ }
+
+ /**
+ * @param idColour the idColour to set
+ */
+ public void setIdColour(Color idColour)
+ {
+ this.idColour = idColour;
+ }
}
{
alignPanel.adjustAnnotationHeight();
+ viewport.updateSequenceIdColours();
buildSortByAnnotationScoresMenu();
alignPanel.paintAlignment(true);
}
{
centreColumnLabels = centrecolumnlabels;
}
+ public void updateSequenceIdColours()
+ {
+ Vector groups = alignment.getGroups();
+ if (sequenceColours==null)
+ {
+ sequenceColours = new Hashtable();
+ }
+ for (int ig=0,igSize=groups.size(); ig<igSize; ig++)
+ {
+ SequenceGroup sg = (SequenceGroup) groups.elementAt(ig);
+ if (sg.idColour!=null)
+ {
+ Vector sqs = sg.getSequences(hiddenRepSequences);
+ for (int s=0,sSize=sqs.size();s<sSize;s++)
+ {
+ sequenceColours.put(sqs.elementAt(s), sg.idColour);
+ }
+ }
+ }
+ }
}
av.alignment.getWidth() - 1);
sg.setName("JTreeGroup:" + sg.hashCode());
-
+ sg.setIdColour(col);
AlignmentPanel[] aps = getAssociatedPanels();
for (int a = 0; a < aps.length; a++)
{