X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjalview%2Fappletgui%2FIdCanvas.js;h=d0d1f864b714d04dd13aad7e86cca72c200f4563;hp=673b00eb312218f118fd80416a0a255ca2acdb8e;hb=36d803e4a1f98728e91e80de5fa0b95e0cadb0d4;hpb=5b669b6c1a4f1f29b178283a46bc22fcd66aabad diff --git a/site/j2s/jalview/appletgui/IdCanvas.js b/site/j2s/jalview/appletgui/IdCanvas.js index 673b00e..d0d1f86 100644 --- a/site/j2s/jalview/appletgui/IdCanvas.js +++ b/site/j2s/jalview/appletgui/IdCanvas.js @@ -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); }}