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