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;
11 Clazz.defineMethod (c$, "isAccelerated",
13 return this.accelerated;
15 Clazz.defineMethod (c$, "isTrueVolatile",
19 Clazz.defineMethod (c$, "clone",
22 return Clazz.superCall (this, java.awt.ImageCapabilities, "clone", []);
24 if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
25 throw new InternalError ();