X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjalview%2Fschemes%2FResidueColourScheme.js;h=23a1c72eeff9bfb808c68855e83f84f358edbbe0;hp=9b2382f1daa860a662e72b29aee8851b8b226fde;hb=36d803e4a1f98728e91e80de5fa0b95e0cadb0d4;hpb=5b669b6c1a4f1f29b178283a46bc22fcd66aabad diff --git a/site/j2s/jalview/schemes/ResidueColourScheme.js b/site/j2s/jalview/schemes/ResidueColourScheme.js index 9b2382f..23a1c72 100644 --- a/site/j2s/jalview/schemes/ResidueColourScheme.js +++ b/site/j2s/jalview/schemes/ResidueColourScheme.js @@ -26,11 +26,11 @@ Clazz.makeConstructor (c$, function () { this.symbolIndex = null; }); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return this.colors == null ? java.awt.Color.white : this.colors[this.symbolIndex[c.charCodeAt (0)]]; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour; if (this.colors != null && this.symbolIndex != null && (this.threshold == 0) || this.aboveThreshold (c, j)) {