public Color findColour(char c, int j, SequenceI seq)
{
// FIXME this is just a copy of NucleotideColourScheme
- Color currentColour;
- if ((threshold == 0) || aboveThreshold(c, j))
+ Color currentColour = Color.white;
+ try
{
- try
- {
- currentColour = colors[ResidueProperties.nucleotideIndex[c]];
- } catch (Exception ex)
- {
- return Color.white;
- }
- }
- else
- {
- return Color.white;
- }
-
- if (conservationColouring)
+ currentColour = colors[ResidueProperties.nucleotideIndex[c]];
+ } catch (Exception ex)
{
- currentColour = applyConservation(currentColour, j);
}
return currentColour;