Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jssun / java2d / SunCompositeContext.js
index 99a5611..b6fc19e 100644 (file)
@@ -1,41 +1,41 @@
-Clazz.declarePackage ("jssun.java2d");\r
-Clazz.load (["java.awt.CompositeContext"], "jssun.java2d.SunCompositeContext", ["java.lang.NullPointerException", "java.awt.image.BufferedImage", "$.WritableRaster", "jssun.java2d.loops.CompositeType"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.srcCM = null;\r
-this.dstCM = null;\r
-this.composite = null;\r
-this.comptype = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jssun.java2d, "SunCompositeContext", null, java.awt.CompositeContext);\r
-Clazz.makeConstructor (c$, \r
-function (ac, s, d) {\r
-if (s == null) {\r
-throw  new NullPointerException ("Source color model cannot be null");\r
-}if (d == null) {\r
-throw  new NullPointerException ("Destination color model cannot be null");\r
-}this.srcCM = s;\r
-this.dstCM = d;\r
-this.composite = ac;\r
-this.comptype = jssun.java2d.loops.CompositeType.forAlphaComposite (ac);\r
-}, "java.awt.AlphaComposite,java.awt.image.ColorModel,java.awt.image.ColorModel");\r
-Clazz.overrideMethod (c$, "dispose", \r
-function () {\r
-});\r
-Clazz.overrideMethod (c$, "compose", \r
-function (srcArg, dstIn, dstOut) {\r
-var src;\r
-var w;\r
-var h;\r
-if (dstIn !== dstOut) {\r
-dstOut.setDataElementsRaster (0, 0, dstIn);\r
-}if (Clazz.instanceOf (srcArg, java.awt.image.WritableRaster)) {\r
-src = srcArg;\r
-} else {\r
-src = srcArg.createCompatibleWritableRaster ();\r
-src.setDataElements (0, 0, srcArg);\r
-}w = Math.min (src.getWidth (), dstIn.getWidth ());\r
-h = Math.min (src.getHeight (), dstIn.getHeight ());\r
-var srcImg =  new java.awt.image.BufferedImage (this.srcCM, src, this.srcCM.isAlphaPremultiplied (), null);\r
-var dstImg =  new java.awt.image.BufferedImage (this.dstCM, dstOut, this.dstCM.isAlphaPremultiplied (), null);\r
-}, "java.awt.image.Raster,java.awt.image.Raster,java.awt.image.WritableRaster");\r
-});\r
+Clazz.declarePackage ("jssun.java2d");
+Clazz.load (["java.awt.CompositeContext"], "jssun.java2d.SunCompositeContext", ["java.lang.NullPointerException", "java.awt.image.BufferedImage", "$.WritableRaster", "jssun.java2d.loops.CompositeType"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.srcCM = null;
+this.dstCM = null;
+this.composite = null;
+this.comptype = null;
+Clazz.instantialize (this, arguments);
+}, jssun.java2d, "SunCompositeContext", null, java.awt.CompositeContext);
+Clazz.makeConstructor (c$, 
+function (ac, s, d) {
+if (s == null) {
+throw  new NullPointerException ("Source color model cannot be null");
+}if (d == null) {
+throw  new NullPointerException ("Destination color model cannot be null");
+}this.srcCM = s;
+this.dstCM = d;
+this.composite = ac;
+this.comptype = jssun.java2d.loops.CompositeType.forAlphaComposite (ac);
+}, "java.awt.AlphaComposite,java.awt.image.ColorModel,java.awt.image.ColorModel");
+Clazz.overrideMethod (c$, "dispose", 
+function () {
+});
+Clazz.overrideMethod (c$, "compose", 
+function (srcArg, dstIn, dstOut) {
+var src;
+var w;
+var h;
+if (dstIn !== dstOut) {
+dstOut.setDataElementsRaster (0, 0, dstIn);
+}if (Clazz.instanceOf (srcArg, java.awt.image.WritableRaster)) {
+src = srcArg;
+} else {
+src = srcArg.createCompatibleWritableRaster ();
+src.setDataElements (0, 0, srcArg);
+}w = Math.min (src.getWidth (), dstIn.getWidth ());
+h = Math.min (src.getHeight (), dstIn.getHeight ());
+var srcImg =  new java.awt.image.BufferedImage (this.srcCM, src, this.srcCM.isAlphaPremultiplied (), null);
+var dstImg =  new java.awt.image.BufferedImage (this.dstCM, dstOut, this.dstCM.isAlphaPremultiplied (), null);
+}, "java.awt.image.Raster,java.awt.image.Raster,java.awt.image.WritableRaster");
+});