Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / image / VolatileImage.js
1 Clazz.declarePackage ("java.awt.image");
2 Clazz.load (["java.awt.Image", "$.Transparency"], "java.awt.image.VolatileImage", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.transparency = 3;
5 Clazz.instantialize (this, arguments);
6 }, java.awt.image, "VolatileImage", java.awt.Image, java.awt.Transparency);
7 Clazz.overrideMethod (c$, "getSource", 
8 function () {
9 return this.getSnapshot ().getSource ();
10 });
11 Clazz.overrideMethod (c$, "getGraphics", 
12 function () {
13 return this.createGraphics ();
14 });
15 Clazz.overrideMethod (c$, "getTransparency", 
16 function () {
17 return this.transparency;
18 });
19 Clazz.defineStatics (c$,
20 "IMAGE_OK", 0,
21 "IMAGE_RESTORED", 1,
22 "IMAGE_INCOMPATIBLE", 2);
23 });