X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjssun%2Fawt%2Fimage%2FSunVolatileImage.js;fp=site%2Fj2s%2Fjssun%2Fawt%2Fimage%2FSunVolatileImage.js;h=b7a1ac46f3aec93fd1d5caa148509e09a7f9982d;hp=fb6f861bd8ee8f0d9dc4e48a67e8560440a4f3ff;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/jssun/awt/image/SunVolatileImage.js b/site/j2s/jssun/awt/image/SunVolatileImage.js index fb6f861..b7a1ac4 100644 --- a/site/j2s/jssun/awt/image/SunVolatileImage.js +++ b/site/j2s/jssun/awt/image/SunVolatileImage.js @@ -1,63 +1,63 @@ -Clazz.declarePackage ("jssun.awt.image"); -Clazz.load (["java.awt.image.VolatileImage"], "jssun.awt.image.SunVolatileImage", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.graphicsConfig = null; -this.width = 0; -this.height = 0; -this.caps = null; -Clazz.instantialize (this, arguments); -}, jssun.awt.image, "SunVolatileImage", java.awt.image.VolatileImage); -Clazz.makeConstructor (c$, -function (graphicsConfig, width, height, transparency, caps) { -Clazz.superConstructor (this, jssun.awt.image.SunVolatileImage, []); -this.graphicsConfig = graphicsConfig; -this.width = width; -this.height = height; -this.transparency = transparency; -this.caps = caps; -}, "java.awt.GraphicsConfiguration,~N,~N,~N,java.awt.ImageCapabilities"); -Clazz.defineMethod (c$, "getWidth", -function () { -return this.width; -}); -Clazz.defineMethod (c$, "getHeight", -function () { -return this.height; -}); -Clazz.defineMethod (c$, "getGraphicsConfig", -function () { -return this.graphicsConfig; -}); -Clazz.overrideMethod (c$, "getSnapshot", -function () { -return null; -}); -Clazz.overrideMethod (c$, "createGraphics", -function () { -return null; -}); -Clazz.overrideMethod (c$, "validate", -function (gc) { -return 0; -}, "java.awt.GraphicsConfiguration"); -Clazz.overrideMethod (c$, "contentsLost", -function () { -return false; -}); -Clazz.overrideMethod (c$, "getCapabilities", -function () { -return this.caps; -}); -Clazz.defineMethod (c$, "getWidth", -function (observer) { -return 0; -}, "java.awt.image.ImageObserver"); -Clazz.defineMethod (c$, "getHeight", -function (observer) { -return 0; -}, "java.awt.image.ImageObserver"); -Clazz.overrideMethod (c$, "getProperty", -function (name, observer) { -return null; -}, "~S,java.awt.image.ImageObserver"); -}); +Clazz.declarePackage ("jssun.awt.image"); +Clazz.load (["java.awt.image.VolatileImage"], "jssun.awt.image.SunVolatileImage", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.graphicsConfig = null; +this.width = 0; +this.height = 0; +this.caps = null; +Clazz.instantialize (this, arguments); +}, jssun.awt.image, "SunVolatileImage", java.awt.image.VolatileImage); +Clazz.makeConstructor (c$, +function (graphicsConfig, width, height, transparency, caps) { +Clazz.superConstructor (this, jssun.awt.image.SunVolatileImage, []); +this.graphicsConfig = graphicsConfig; +this.width = width; +this.height = height; +this.transparency = transparency; +this.caps = caps; +}, "java.awt.GraphicsConfiguration,~N,~N,~N,java.awt.ImageCapabilities"); +Clazz.defineMethod (c$, "getWidth", +function () { +return this.width; +}); +Clazz.defineMethod (c$, "getHeight", +function () { +return this.height; +}); +Clazz.defineMethod (c$, "getGraphicsConfig", +function () { +return this.graphicsConfig; +}); +Clazz.overrideMethod (c$, "getSnapshot", +function () { +return null; +}); +Clazz.overrideMethod (c$, "createGraphics", +function () { +return null; +}); +Clazz.overrideMethod (c$, "validate", +function (gc) { +return 0; +}, "java.awt.GraphicsConfiguration"); +Clazz.overrideMethod (c$, "contentsLost", +function () { +return false; +}); +Clazz.overrideMethod (c$, "getCapabilities", +function () { +return this.caps; +}); +Clazz.defineMethod (c$, "getWidth", +function (observer) { +return 0; +}, "java.awt.image.ImageObserver"); +Clazz.defineMethod (c$, "getHeight", +function (observer) { +return 0; +}, "java.awt.image.ImageObserver"); +Clazz.overrideMethod (c$, "getProperty", +function (name, observer) { +return null; +}, "~S,java.awt.image.ImageObserver"); +});