99f726f244eb03cbb75a5b8935a3312f2af73e0c
[jalviewjs.git] / site / j2s / jssun / awt / image / ImageConsumerQueue.js
1 Clazz.declarePackage ("jssun.awt.image");\r
2 c$ = Clazz.decorateAsClass (function () {\r
3 this.next = null;\r
4 this.consumer = null;\r
5 this.interested = false;\r
6 this.securityContext = null;\r
7 this.secure = false;\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
12 var cqprev = null;\r
13 for (var cq = cqbase; cq != null; cq = cq.next) {\r
14 if (cq.consumer === ic) {\r
15 if (cqprev == null) {\r
16 cqbase = cq.next;\r
17 } else {\r
18 cqprev.next = cq.next;\r
19 }cq.interested = stillinterested;\r
20 break;\r
21 }cqprev = cq;\r
22 }\r
23 return cqbase;\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
29 return true;\r
30 }}\r
31 return false;\r
32 }, "jssun.awt.image.ImageConsumerQueue,java.awt.image.ImageConsumer");\r
33 Clazz.makeConstructor (c$, \r
34 function (src, ic) {\r
35 this.consumer = ic;\r
36 this.interested = true;\r
37 this.secure = true;\r
38 }, "jssun.awt.image.InputStreamImageSource,java.awt.image.ImageConsumer");\r
39 Clazz.overrideMethod (c$, "toString", \r
40 function () {\r
41 return ("[" + this.consumer + ", " + (this.interested ? "" : "not ") + "interested" + (this.securityContext != null ? ", " + this.securityContext : "") + "]");\r
42 });\r