0ee679be13f2aba1f6536c44592d3f6f093f5129
[jalviewjs.git] / site / j2s / jssun / awt / image / ImageConsumerQueue.js
1 Clazz.declarePackage ("jssun.awt.image");
2 c$ = Clazz.decorateAsClass (function () {
3 this.next = null;
4 this.consumer = null;
5 this.interested = false;
6 this.securityContext = null;
7 this.secure = false;
8 Clazz.instantialize (this, arguments);
9 }, jssun.awt.image, "ImageConsumerQueue");
10 c$.removeConsumer = Clazz.defineMethod (c$, "removeConsumer", 
11 function (cqbase, ic, stillinterested) {
12 var cqprev = null;
13 for (var cq = cqbase; cq != null; cq = cq.next) {
14 if (cq.consumer === ic) {
15 if (cqprev == null) {
16 cqbase = cq.next;
17 } else {
18 cqprev.next = cq.next;
19 }cq.interested = stillinterested;
20 break;
21 }cqprev = cq;
22 }
23 return cqbase;
24 }, "jssun.awt.image.ImageConsumerQueue,java.awt.image.ImageConsumer,~B");
25 c$.isConsumer = Clazz.defineMethod (c$, "isConsumer", 
26 function (cqbase, ic) {
27 for (var cq = cqbase; cq != null; cq = cq.next) {
28 if (cq.consumer === ic) {
29 return true;
30 }}
31 return false;
32 }, "jssun.awt.image.ImageConsumerQueue,java.awt.image.ImageConsumer");
33 Clazz.makeConstructor (c$, 
34 function (src, ic) {
35 this.consumer = ic;
36 this.interested = true;
37 this.secure = true;
38 }, "jssun.awt.image.InputStreamImageSource,java.awt.image.ImageConsumer");
39 Clazz.overrideMethod (c$, "toString", 
40 function () {
41 return ("[" + this.consumer + ", " + (this.interested ? "" : "not ") + "interested" + (this.securityContext != null ? ", " + this.securityContext : "") + "]");
42 });