JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading
[jalviewjs.git] / site / j2s / jalview / appletgui / IdCanvas.js
index 673b00e..d0d1f86 100644 (file)
@@ -1,5 +1,5 @@
 Clazz.declarePackage ("jalview.appletgui");
-Clazz.load (["awt2swing.Panel"], "jalview.appletgui.IdCanvas", ["jalview.appletgui.AnnotationLabels", "$.AnnotationPanel", "$.PaintRefresher", "java.awt.Color", "$.Font"], function () {
+Clazz.load (["awt2swing.Panel"], "jalview.appletgui.IdCanvas", ["awt2swing.Util", "jalview.appletgui.AnnotationLabels", "$.AnnotationPanel", "$.PaintRefresher", "java.awt.Color", "$.Font"], function () {
 c$ = Clazz.decorateAsClass (function () {
 this.av = null;
 this.showScores = true;
@@ -35,7 +35,7 @@ gg.setColor (java.awt.Color.white);
 gg.setColor (this.av.getSequenceColour (s));
 gg.fillRect (0, ((i - starty) * charHeight) + ypos, this.getSize ().width, charHeight);
 gg.setColor (java.awt.Color.black);
-}gg.drawString (s.getDisplayId (this.av.getShowJVSuffix ()), 0, ((i - starty) * charHeight) + ypos + charHeight - (Clazz.doubleToInt (charHeight / 5)));
+}awt2swing.Util.drawString (gg, s.getDisplayId (this.av.getShowJVSuffix ()), 0, ((i - starty) * charHeight) + ypos + charHeight - (Clazz.doubleToInt (charHeight / 5)));
 if (hiddenRows) {
 this.drawMarker (i, starty, ypos);
 }}, "java.awt.Graphics,~B,jalview.datamodel.SequenceI,~N,~N,~N");
@@ -146,7 +146,7 @@ currentTextColor = java.awt.Color.black;
 }this.gg.setColor (currentColor);
 this.gg.fillRect (0, (i - starty) * this.avcharHeight, this.getSize ().width, this.avcharHeight);
 this.gg.setColor (currentTextColor);
-this.gg.drawString (seq.getDisplayId (this.av.getShowJVSuffix ()), 0, (((i - starty) * this.avcharHeight) + this.avcharHeight) - (Clazz.doubleToInt (this.avcharHeight / 5)));
+awt2swing.Util.drawString (this.gg, seq.getDisplayId (this.av.getShowJVSuffix ()), 0, (((i - starty) * this.avcharHeight) + this.avcharHeight) - (Clazz.doubleToInt (this.avcharHeight / 5)));
 if (hiddenRows) {
 this.drawMarker (i, starty, 0);
 }}