1 Clazz.declarePackage ("jssun.awt.image");
\r
2 c$ = Clazz.decorateAsClass (function () {
\r
4 this.consumer = null;
\r
5 this.interested = false;
\r
6 this.securityContext = null;
\r
8 Clazz.instantialize (this, arguments);
\r
9 }, jssun.awt.image, "ImageConsumerQueue");
\r
10 c$.removeConsumer = Clazz.defineMethod (c$, "removeConsumer",
\r
11 function (cqbase, ic, stillinterested) {
\r
13 for (var cq = cqbase; cq != null; cq = cq.next) {
\r
14 if (cq.consumer === ic) {
\r
15 if (cqprev == null) {
\r
18 cqprev.next = cq.next;
\r
19 }cq.interested = stillinterested;
\r
24 }, "jssun.awt.image.ImageConsumerQueue,java.awt.image.ImageConsumer,~B");
\r
25 c$.isConsumer = Clazz.defineMethod (c$, "isConsumer",
\r
26 function (cqbase, ic) {
\r
27 for (var cq = cqbase; cq != null; cq = cq.next) {
\r
28 if (cq.consumer === ic) {
\r
32 }, "jssun.awt.image.ImageConsumerQueue,java.awt.image.ImageConsumer");
\r
33 Clazz.makeConstructor (c$,
\r
34 function (src, ic) {
\r
36 this.interested = true;
\r
38 }, "jssun.awt.image.InputStreamImageSource,java.awt.image.ImageConsumer");
\r
39 Clazz.overrideMethod (c$, "toString",
\r
41 return ("[" + this.consumer + ", " + (this.interested ? "" : "not ") + "interested" + (this.securityContext != null ? ", " + this.securityContext : "") + "]");
\r