Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / ImageCapabilities.js
1 Clazz.declarePackage ("java.awt");
2 Clazz.load (null, "java.awt.ImageCapabilities", ["java.lang.InternalError"], function () {
3 c$ = Clazz.decorateAsClass (function () {
4 this.accelerated = false;
5 Clazz.instantialize (this, arguments);
6 }, java.awt, "ImageCapabilities", null, Cloneable);
7 Clazz.makeConstructor (c$, 
8 function (accelerated) {
9 this.accelerated = accelerated;
10 }, "~B");
11 Clazz.defineMethod (c$, "isAccelerated", 
12 function () {
13 return this.accelerated;
14 });
15 Clazz.defineMethod (c$, "isTrueVolatile", 
16 function () {
17 return false;
18 });
19 Clazz.defineMethod (c$, "clone", 
20 function () {
21 try {
22 return Clazz.superCall (this, java.awt.ImageCapabilities, "clone", []);
23 } catch (e) {
24 if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
25 throw  new InternalError ();
26 } else {
27 throw e;
28 }
29 }
30 });
31 });