Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jssun / awt / image / OffScreenImageSource.js
index 03760e8..4146896 100644 (file)
@@ -1,66 +1,66 @@
-Clazz.declarePackage ("jssun.awt.image");\r
-Clazz.load (["java.awt.image.ImageProducer"], "jssun.awt.image.OffScreenImageSource", ["java.util.Hashtable"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.image = null;\r
-this.width = 0;\r
-this.height = 0;\r
-this.properties = null;\r
-this.theConsumer = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.awt.image, "OffScreenImageSource", null, java.awt.image.ImageProducer);\r
-Clazz.makeConstructor (c$, \r
-function (image, properties) {\r
-this.image = image;\r
-if (properties != null) {\r
-this.properties = properties;\r
-} else {\r
-this.properties =  new java.util.Hashtable ();\r
-}this.width = image.getWidth ();\r
-this.height = image.getHeight ();\r
-}, "java.awt.image.BufferedImage,java.util.Hashtable");\r
-Clazz.makeConstructor (c$, \r
-function (image) {\r
-this.construct (image, null);\r
-}, "java.awt.image.BufferedImage");\r
-Clazz.overrideMethod (c$, "addConsumer", \r
-function (ic) {\r
-this.theConsumer = ic;\r
-this.produce ();\r
-}, "java.awt.image.ImageConsumer");\r
-Clazz.overrideMethod (c$, "isConsumer", \r
-function (ic) {\r
-return (ic === this.theConsumer);\r
-}, "java.awt.image.ImageConsumer");\r
-Clazz.overrideMethod (c$, "removeConsumer", \r
-function (ic) {\r
-if (this.theConsumer === ic) {\r
-this.theConsumer = null;\r
-}}, "java.awt.image.ImageConsumer");\r
-Clazz.overrideMethod (c$, "startProduction", \r
-function (ic) {\r
-this.addConsumer (ic);\r
-}, "java.awt.image.ImageConsumer");\r
-Clazz.overrideMethod (c$, "requestTopDownLeftRightResend", \r
-function (ic) {\r
-}, "java.awt.image.ImageConsumer");\r
-Clazz.defineMethod (c$, "sendPixels", \r
- function () {\r
-var cm = this.image.getColorModel ();\r
-});\r
-Clazz.defineMethod (c$, "produce", \r
- function () {\r
-try {\r
-this.theConsumer.setDimensions (this.image.getWidth (), this.image.getHeight ());\r
-this.theConsumer.setProperties (this.properties);\r
-this.sendPixels ();\r
-this.theConsumer.imageComplete (2);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, NullPointerException)) {\r
-if (this.theConsumer != null) {\r
-this.theConsumer.imageComplete (1);\r
-}} else {\r
-throw e;\r
-}\r
-}\r
-});\r
-});\r
+Clazz.declarePackage ("jssun.awt.image");
+Clazz.load (["java.awt.image.ImageProducer"], "jssun.awt.image.OffScreenImageSource", ["java.util.Hashtable"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.image = null;
+this.width = 0;
+this.height = 0;
+this.properties = null;
+this.theConsumer = null;
+Clazz.instantialize (this, arguments);
+}, jssun.awt.image, "OffScreenImageSource", null, java.awt.image.ImageProducer);
+Clazz.makeConstructor (c$, 
+function (image, properties) {
+this.image = image;
+if (properties != null) {
+this.properties = properties;
+} else {
+this.properties =  new java.util.Hashtable ();
+}this.width = image.getWidth ();
+this.height = image.getHeight ();
+}, "java.awt.image.BufferedImage,java.util.Hashtable");
+Clazz.makeConstructor (c$, 
+function (image) {
+this.construct (image, null);
+}, "java.awt.image.BufferedImage");
+Clazz.overrideMethod (c$, "addConsumer", 
+function (ic) {
+this.theConsumer = ic;
+this.produce ();
+}, "java.awt.image.ImageConsumer");
+Clazz.overrideMethod (c$, "isConsumer", 
+function (ic) {
+return (ic === this.theConsumer);
+}, "java.awt.image.ImageConsumer");
+Clazz.overrideMethod (c$, "removeConsumer", 
+function (ic) {
+if (this.theConsumer === ic) {
+this.theConsumer = null;
+}}, "java.awt.image.ImageConsumer");
+Clazz.overrideMethod (c$, "startProduction", 
+function (ic) {
+this.addConsumer (ic);
+}, "java.awt.image.ImageConsumer");
+Clazz.overrideMethod (c$, "requestTopDownLeftRightResend", 
+function (ic) {
+}, "java.awt.image.ImageConsumer");
+Clazz.defineMethod (c$, "sendPixels", 
+ function () {
+var cm = this.image.getColorModel ();
+});
+Clazz.defineMethod (c$, "produce", 
+ function () {
+try {
+this.theConsumer.setDimensions (this.image.getWidth (), this.image.getHeight ());
+this.theConsumer.setProperties (this.properties);
+this.sendPixels ();
+this.theConsumer.imageComplete (2);
+} catch (e) {
+if (Clazz.exceptionOf (e, NullPointerException)) {
+if (this.theConsumer != null) {
+this.theConsumer.imageComplete (1);
+}} else {
+throw e;
+}
+}
+});
+});