Clazz.declarePackage ("jalview.appletgui");
-Clazz.load (["jalview.api.SequenceRenderer"], "jalview.appletgui.SequenceRenderer", ["jalview.util.Comparison", "java.awt.Color", "$.Font"], function () {
+Clazz.load (["jalview.api.SequenceRenderer"], "jalview.appletgui.SequenceRenderer", ["awt2swing.Util", "jalview.util.Comparison", "java.awt.Color", "$.Font"], function () {
c$ = Clazz.decorateAsClass (function () {
this.av = null;
this.fm = null;
Clazz.defineMethod (c$, "getBoxColour",
function (cs, seq, i) {
if (cs != null) {
-this.resBoxColour = cs.findColour (seq.getCharAt (i), i, seq);
+this.resBoxColour = cs.findColourSeq (seq.getCharAt (i), i, seq);
} else if (this.forOverview && !jalview.util.Comparison.isGap (seq.getCharAt (i))) {
this.resBoxColour = java.awt.Color.lightGray;
} else {
this.graphics.setFont (this.av.font);
bold = false;
}}charOffset = Clazz.doubleToInt ((avCharWidth - this.fm.charWidth (s)) / 2);
-this.graphics.drawString (String.valueOf (s), charOffset + avCharWidth * (i - start), y1);
+awt2swing.Util.drawString (this.graphics, String.valueOf (s), charOffset + avCharWidth * (i - start), y1);
}
}, "jalview.datamodel.SequenceI,~N,~N,~N");
Clazz.defineMethod (c$, "getDisplayChar",
if (i < seq.getLength ()) {
s = seq.getCharAt (i);
}charOffset = Clazz.doubleToInt ((avCharWidth - this.fm.charWidth (s)) / 2);
-this.graphics.drawString (String.valueOf (s), charOffset + x1 + avCharWidth * (i - start), y1 + avCharHeight - pady);
+awt2swing.Util.drawString (this.graphics, String.valueOf (s), charOffset + x1 + avCharWidth * (i - start), y1 + avCharHeight - pady);
}
}}, "jalview.datamodel.SequenceI,~N,~N,~N,~N");
Clazz.defineMethod (c$, "drawCursor",
var s = seq.getCharAt (res);
if (this.av.validCharWidth) {
charOffset = Clazz.doubleToInt ((this.av.getCharWidth () - this.fm.charWidth (s)) / 2);
-this.graphics.drawString (String.valueOf (s), charOffset + x1, (y1 + this.av.getCharHeight ()) - pady);
+awt2swing.Util.drawString (this.graphics, String.valueOf (s), charOffset + x1, (y1 + this.av.getCharHeight ()) - pady);
}}, "jalview.datamodel.SequenceI,~N,~N,~N");
});