renderGaps = b;\r
}\r
\r
- public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i)\r
+ public Color getResidueBoxColour(SequenceI seq, int i)\r
{\r
- getBoxColour(cs, seq, i);\r
+ allGroups = av.alignment.findAllGroups(seq);\r
+\r
+ if (inCurrentSequenceGroup(i))\r
+ {\r
+ if (currentSequenceGroup.getDisplayBoxes())\r
+ {\r
+ getBoxColour(currentSequenceGroup.cs, seq, i);\r
+ }\r
+ }\r
+ else if (av.getShowBoxes())\r
+ {\r
+ getBoxColour(av.globalColourScheme, seq, i);\r
+ }\r
+\r
return resBoxColour;\r
- }\r
+ }\r
\r
void getBoxColour(ColourSchemeI cs, SequenceI seq, int i)\r
{\r