1 Clazz.declarePackage ("java.awt.image");
\r
2 Clazz.load (null, "java.awt.image.LookupTable", ["java.lang.IllegalArgumentException"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
4 this.numComponents = 0;
\r
7 Clazz.instantialize (this, arguments);
\r
8 }, java.awt.image, "LookupTable");
\r
9 Clazz.makeConstructor (c$,
\r
10 function (offset, numComponents) {
\r
12 throw new IllegalArgumentException ("Offset must be greater than 0");
\r
13 }if (numComponents < 1) {
\r
14 throw new IllegalArgumentException ("Number of components must be at least 1");
\r
15 }this.numComponents = numComponents;
\r
16 this.offset = offset;
\r
18 Clazz.defineMethod (c$, "getNumComponents",
\r
20 return this.numComponents;
\r
22 Clazz.defineMethod (c$, "getOffset",
\r