Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / jssun / awt / image / ImageDecoder.js
index 5e4ddef..b9b62d8 100644 (file)
-Clazz.declarePackage ("jssun.awt.image");\r
-Clazz.load (null, "jssun.awt.image.ImageDecoder", ["java.lang.Thread", "jssun.awt.image.ImageConsumerQueue"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.source = null;\r
-this.input = null;\r
-this.feeder = null;\r
-this.aborted = false;\r
-this.finished = false;\r
-this.queue = null;\r
-this.next = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.awt.image, "ImageDecoder");\r
-Clazz.makeConstructor (c$, \r
-function (src, is) {\r
-this.source = src;\r
-this.input = is;\r
-this.feeder = Thread.currentThread ();\r
-}, "jssun.awt.image.InputStreamImageSource,java.io.InputStream");\r
-Clazz.defineMethod (c$, "isConsumer", \r
-function (ic) {\r
-return jssun.awt.image.ImageConsumerQueue.isConsumer (this.queue, ic);\r
-}, "java.awt.image.ImageConsumer");\r
-Clazz.defineMethod (c$, "removeConsumer", \r
-function (ic) {\r
-this.queue = jssun.awt.image.ImageConsumerQueue.removeConsumer (this.queue, ic, false);\r
-if (!this.finished && this.queue == null) {\r
-this.abort ();\r
-}}, "java.awt.image.ImageConsumer");\r
-Clazz.defineMethod (c$, "nextConsumer", \r
-function (cq) {\r
-{\r
-if (this.aborted) {\r
-return null;\r
-}cq = ((cq == null) ? this.queue : cq.next);\r
-while (cq != null) {\r
-if (cq.interested) {\r
-return cq;\r
-}cq = cq.next;\r
-}\r
-}return null;\r
-}, "jssun.awt.image.ImageConsumerQueue");\r
-Clazz.defineMethod (c$, "setDimensions", \r
-function (w, h) {\r
-var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.setDimensions (w, h);\r
-count++;\r
-}\r
-return count;\r
-}, "~N,~N");\r
-Clazz.defineMethod (c$, "setProperties", \r
-function (props) {\r
-var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.setProperties (props);\r
-count++;\r
-}\r
-return count;\r
-}, "java.util.Hashtable");\r
-Clazz.defineMethod (c$, "setColorModel", \r
-function (model) {\r
-var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.setColorModel (model);\r
-count++;\r
-}\r
-return count;\r
-}, "java.awt.image.ColorModel");\r
-Clazz.defineMethod (c$, "setHints", \r
-function (hints) {\r
-var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.setHints (hints);\r
-count++;\r
-}\r
-return count;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "headerComplete", \r
-function () {\r
-this.feeder.setPriority (3);\r
-});\r
-Clazz.defineMethod (c$, "setPixels", \r
-function (x, y, w, h, model, pix, off, scansize) {\r
-this.source.latchConsumers (this);\r
-var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.setPixels (x, y, w, h, model, pix, off, scansize);\r
-count++;\r
-}\r
-return count;\r
-}, "~N,~N,~N,~N,java.awt.image.ColorModel,~A,~N,~N");\r
-Clazz.defineMethod (c$, "setPixels", \r
-function (x, y, w, h, model, pix, off, scansize) {\r
-this.source.latchConsumers (this);\r
-var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.setPixels (x, y, w, h, model, pix, off, scansize);\r
-count++;\r
-}\r
-return count;\r
-}, "~N,~N,~N,~N,java.awt.image.ColorModel,~A,~N,~N");\r
-Clazz.defineMethod (c$, "imageComplete", \r
-function (status, done) {\r
-this.source.latchConsumers (this);\r
-if (done) {\r
-this.finished = true;\r
-this.source.doneDecoding (this);\r
-}var cq = null;\r
-var count = 0;\r
-while ((cq = this.nextConsumer (cq)) != null) {\r
-cq.consumer.imageComplete (status);\r
-count++;\r
-}\r
-return count;\r
-}, "~N,~B");\r
-Clazz.defineMethod (c$, "abort", \r
-function () {\r
-this.aborted = true;\r
-this.source.doneDecoding (this);\r
-this.close ();\r
-this.feeder.interrupt ();\r
-});\r
-Clazz.defineMethod (c$, "close", \r
-function () {\r
-if (this.input != null) {\r
-try {\r
-this.input.close ();\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, java.io.IOException)) {\r
-} else {\r
-throw e;\r
-}\r
-}\r
-}});\r
-});\r
+Clazz.declarePackage ("jssun.awt.image");
+Clazz.load (null, "jssun.awt.image.ImageDecoder", ["java.lang.Thread", "jssun.awt.image.ImageConsumerQueue"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.source = null;
+this.input = null;
+this.feeder = null;
+this.aborted = false;
+this.finished = false;
+this.queue = null;
+this.next = null;
+Clazz.instantialize (this, arguments);
+}, jssun.awt.image, "ImageDecoder");
+Clazz.makeConstructor (c$, 
+function (src, is) {
+this.source = src;
+this.input = is;
+this.feeder = Thread.currentThread ();
+}, "jssun.awt.image.InputStreamImageSource,java.io.InputStream");
+Clazz.defineMethod (c$, "isConsumer", 
+function (ic) {
+return jssun.awt.image.ImageConsumerQueue.isConsumer (this.queue, ic);
+}, "java.awt.image.ImageConsumer");
+Clazz.defineMethod (c$, "removeConsumer", 
+function (ic) {
+this.queue = jssun.awt.image.ImageConsumerQueue.removeConsumer (this.queue, ic, false);
+if (!this.finished && this.queue == null) {
+this.abort ();
+}}, "java.awt.image.ImageConsumer");
+Clazz.defineMethod (c$, "nextConsumer", 
+function (cq) {
+{
+if (this.aborted) {
+return null;
+}cq = ((cq == null) ? this.queue : cq.next);
+while (cq != null) {
+if (cq.interested) {
+return cq;
+}cq = cq.next;
+}
+}return null;
+}, "jssun.awt.image.ImageConsumerQueue");
+Clazz.defineMethod (c$, "setDimensions", 
+function (w, h) {
+var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.setDimensions (w, h);
+count++;
+}
+return count;
+}, "~N,~N");
+Clazz.defineMethod (c$, "setProperties", 
+function (props) {
+var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.setProperties (props);
+count++;
+}
+return count;
+}, "java.util.Hashtable");
+Clazz.defineMethod (c$, "setColorModel", 
+function (model) {
+var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.setColorModel (model);
+count++;
+}
+return count;
+}, "java.awt.image.ColorModel");
+Clazz.defineMethod (c$, "setHints", 
+function (hints) {
+var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.setHints (hints);
+count++;
+}
+return count;
+}, "~N");
+Clazz.defineMethod (c$, "headerComplete", 
+function () {
+this.feeder.setPriority (3);
+});
+Clazz.defineMethod (c$, "setPixels", 
+function (x, y, w, h, model, pix, off, scansize) {
+this.source.latchConsumers (this);
+var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.setPixels (x, y, w, h, model, pix, off, scansize);
+count++;
+}
+return count;
+}, "~N,~N,~N,~N,java.awt.image.ColorModel,~A,~N,~N");
+Clazz.defineMethod (c$, "setPixels", 
+function (x, y, w, h, model, pix, off, scansize) {
+this.source.latchConsumers (this);
+var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.setPixels (x, y, w, h, model, pix, off, scansize);
+count++;
+}
+return count;
+}, "~N,~N,~N,~N,java.awt.image.ColorModel,~A,~N,~N");
+Clazz.defineMethod (c$, "imageComplete", 
+function (status, done) {
+this.source.latchConsumers (this);
+if (done) {
+this.finished = true;
+this.source.doneDecoding (this);
+}var cq = null;
+var count = 0;
+while ((cq = this.nextConsumer (cq)) != null) {
+cq.consumer.imageComplete (status);
+count++;
+}
+return count;
+}, "~N,~B");
+Clazz.defineMethod (c$, "abort", 
+function () {
+this.aborted = true;
+this.source.doneDecoding (this);
+this.close ();
+this.feeder.interrupt ();
+});
+Clazz.defineMethod (c$, "close", 
+function () {
+if (this.input != null) {
+try {
+this.input.close ();
+} catch (e) {
+if (Clazz.exceptionOf (e, java.io.IOException)) {
+} else {
+throw e;
+}
+}
+}});
+});