- @Override
- public Color getBoxColour(ResidueShaderI shader, SequenceI seq, int i)
- {
- Color resBoxColour = RESIDUE_COLOUR;
- char currentChar = seq.getCharAt(i);
-
- // In the overview window, gaps are coloured grey, unless the colour scheme
- // specifies a gap colour, in which case gaps honour the colour scheme
- // settings
- if (shader.getColourScheme() != null)
- {
- if (Comparison.isGap(currentChar)
- && (!shader.getColourScheme().hasGapColour()))
- {
- resBoxColour = GAP_COLOUR;
- }
- else
- {
- resBoxColour = shader.findColour(currentChar, i, seq);
- }
- }
- else if (Comparison.isGap(currentChar))
- {
- resBoxColour = GAP_COLOUR;
- }
-
- return resBoxColour;
- }
-