git://source.jalview.org
/
jalviewjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading
[jalviewjs.git]
/
site
/
j2s
/
jalview
/
schemes
/
ResidueColourScheme.js
diff --git
a/site/j2s/jalview/schemes/ResidueColourScheme.js
b/site/j2s/jalview/schemes/ResidueColourScheme.js
index
9b2382f
..
23a1c72
100644
(file)
--- 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;
});
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");
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)) {
function (c, j, seq) {
var currentColour;
if (this.colors != null && this.symbolIndex != null && (this.threshold == 0) || this.aboveThreshold (c, j)) {