X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Fawt%2Fimage%2FLookupTable.js;h=f2488c59ac3d7c917cb425f6ab8a3ba31dac543c;hp=bcdd323610b11f17f464609c524f84924724f669;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/java/awt/image/LookupTable.js b/site/j2s/java/awt/image/LookupTable.js index bcdd323..f2488c5 100644 --- a/site/j2s/java/awt/image/LookupTable.js +++ b/site/j2s/java/awt/image/LookupTable.js @@ -1,26 +1,26 @@ -Clazz.declarePackage ("java.awt.image"); -Clazz.load (null, "java.awt.image.LookupTable", ["java.lang.IllegalArgumentException"], function () { -c$ = Clazz.decorateAsClass (function () { -this.numComponents = 0; -this.offset = 0; -this.numEntries = 0; -Clazz.instantialize (this, arguments); -}, java.awt.image, "LookupTable"); -Clazz.makeConstructor (c$, -function (offset, numComponents) { -if (offset < 0) { -throw new IllegalArgumentException ("Offset must be greater than 0"); -}if (numComponents < 1) { -throw new IllegalArgumentException ("Number of components must be at least 1"); -}this.numComponents = numComponents; -this.offset = offset; -}, "~N,~N"); -Clazz.defineMethod (c$, "getNumComponents", -function () { -return this.numComponents; -}); -Clazz.defineMethod (c$, "getOffset", -function () { -return this.offset; -}); -}); +Clazz.declarePackage ("java.awt.image"); +Clazz.load (null, "java.awt.image.LookupTable", ["java.lang.IllegalArgumentException"], function () { +c$ = Clazz.decorateAsClass (function () { +this.numComponents = 0; +this.offset = 0; +this.numEntries = 0; +Clazz.instantialize (this, arguments); +}, java.awt.image, "LookupTable"); +Clazz.makeConstructor (c$, +function (offset, numComponents) { +if (offset < 0) { +throw new IllegalArgumentException ("Offset must be greater than 0"); +}if (numComponents < 1) { +throw new IllegalArgumentException ("Number of components must be at least 1"); +}this.numComponents = numComponents; +this.offset = offset; +}, "~N,~N"); +Clazz.defineMethod (c$, "getNumComponents", +function () { +return this.numComponents; +}); +Clazz.defineMethod (c$, "getOffset", +function () { +return this.offset; +}); +});