this.applet = document.getAnonymousNodes(this)[0]; this.repaintTimer = null this.scheduleRepaint = function() { // If we've already scheduled a repaint, do nothing. if (this.repaintTimer) return; var self = this; // Ask the applet to refresh itself as soon as we return // to the event loop, if we haven't already. repaintTimer = window.setTimeout(function() { self.applet.repaint(); self.repaintTimer = null; }, 0); } null if (type == "2d") return this; else return null; alert('NYI'); this.applet.save(); this.applet.restore(); this.applet.rotate(angle); this.applet.scale(x, y); this.applet.translate(x, y); this.applet.clearRect(x,y,w,h); this.scheduleRepaint(); this.applet.fillRect(x,y,w,h); this.scheduleRepaint(); this.applet.strokeRect(x,y,w,h); this.scheduleRepaint(); this.applet.beginPath(); this.applet.closePath(); this.applet.moveTo(x,y); this.applet.lineTo(x,y); this.applet.quadraticCurveTo(cx, cy, x,y); this.applet.bezierCurveTo(cx1, cy1, cx2, cy2, x,y); this.applet.rect(x,y,w,h); alert("NYI"); alert("NYI"); this.applet.fill(); this.scheduleRepaint(); this.applet.stroke(); this.scheduleRepaint(); this.applet.clip(); if (arguments.length == 5) this.applet.drawImage(image.src, x, y, w, h); else this.applet.drawImage(image.src, x, y); this.scheduleRepaint();