X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FNucleotideColourScheme.java;h=899fc60ae99d22f2cc372d99e22a543480dd3534;hb=f3349bc9021e8ef27cf56dd7bc8417f1762f31e3;hp=f36bcadec05f46c3f78b7deb3913060a9ea478da;hpb=3d941a02a998676a12f8ff43fa98d9e1f4c27142;p=jalview.git diff --git a/src/jalview/schemes/NucleotideColourScheme.java b/src/jalview/schemes/NucleotideColourScheme.java index f36bcad..899fc60 100755 --- a/src/jalview/schemes/NucleotideColourScheme.java +++ b/src/jalview/schemes/NucleotideColourScheme.java @@ -44,10 +44,10 @@ public class NucleotideColourScheme extends ResidueColourScheme * * @return DOCUMENT ME! */ - public Color findColour(String n) + public Color findColour(char c) { // System.out.println("called"); log.debug - return colors[ResidueProperties.nucleotideIndex[n.charAt(0)]]; + return colors[ResidueProperties.nucleotideIndex[c]]; } /** @@ -58,14 +58,14 @@ public class NucleotideColourScheme extends ResidueColourScheme * * @return DOCUMENT ME! */ - public Color findColour(String n, int j) + public Color findColour(char c, int j) { Color currentColour; - if ((threshold == 0) || aboveThreshold(n, j)) + if ((threshold == 0) || aboveThreshold(c, j)) { try { - currentColour = colors[ ResidueProperties.nucleotideIndex[n.charAt(0)]]; + currentColour = colors[ ResidueProperties.nucleotideIndex[c]]; } catch (Exception ex) { @@ -78,7 +78,7 @@ public class NucleotideColourScheme extends ResidueColourScheme } if(conservationColouring) - applyConservation(currentColour, j); + currentColour = applyConservation(currentColour, j); return currentColour; }