b7a1ac46f3aec93fd1d5caa148509e09a7f9982d
[jalviewjs.git] / site / j2s / jssun / awt / image / SunVolatileImage.js
1 Clazz.declarePackage ("jssun.awt.image");
2 Clazz.load (["java.awt.image.VolatileImage"], "jssun.awt.image.SunVolatileImage", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.graphicsConfig = null;
5 this.width = 0;
6 this.height = 0;
7 this.caps = null;
8 Clazz.instantialize (this, arguments);
9 }, jssun.awt.image, "SunVolatileImage", java.awt.image.VolatileImage);
10 Clazz.makeConstructor (c$, 
11 function (graphicsConfig, width, height, transparency, caps) {
12 Clazz.superConstructor (this, jssun.awt.image.SunVolatileImage, []);
13 this.graphicsConfig = graphicsConfig;
14 this.width = width;
15 this.height = height;
16 this.transparency = transparency;
17 this.caps = caps;
18 }, "java.awt.GraphicsConfiguration,~N,~N,~N,java.awt.ImageCapabilities");
19 Clazz.defineMethod (c$, "getWidth", 
20 function () {
21 return this.width;
22 });
23 Clazz.defineMethod (c$, "getHeight", 
24 function () {
25 return this.height;
26 });
27 Clazz.defineMethod (c$, "getGraphicsConfig", 
28 function () {
29 return this.graphicsConfig;
30 });
31 Clazz.overrideMethod (c$, "getSnapshot", 
32 function () {
33 return null;
34 });
35 Clazz.overrideMethod (c$, "createGraphics", 
36 function () {
37 return null;
38 });
39 Clazz.overrideMethod (c$, "validate", 
40 function (gc) {
41 return 0;
42 }, "java.awt.GraphicsConfiguration");
43 Clazz.overrideMethod (c$, "contentsLost", 
44 function () {
45 return false;
46 });
47 Clazz.overrideMethod (c$, "getCapabilities", 
48 function () {
49 return this.caps;
50 });
51 Clazz.defineMethod (c$, "getWidth", 
52 function (observer) {
53 return 0;
54 }, "java.awt.image.ImageObserver");
55 Clazz.defineMethod (c$, "getHeight", 
56 function (observer) {
57 return 0;
58 }, "java.awt.image.ImageObserver");
59 Clazz.overrideMethod (c$, "getProperty", 
60 function (name, observer) {
61 return null;
62 }, "~S,java.awt.image.ImageObserver");
63 });