X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjava%2Fawt%2FDisplayMode.js;h=18f8dc8d9317645b2f8eae35ba1f073d35fa9002;hp=3e3e56732b6c34e4e79b57b7abbdd345565048c3;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/java/awt/DisplayMode.js b/site/j2s/java/awt/DisplayMode.js index 3e3e567..18f8dc8 100644 --- a/site/j2s/java/awt/DisplayMode.js +++ b/site/j2s/java/awt/DisplayMode.js @@ -1,51 +1,51 @@ -Clazz.declarePackage ("java.awt"); -Clazz.load (null, "java.awt.DisplayMode", ["java.awt.Dimension"], function () { -c$ = Clazz.decorateAsClass (function () { -this.size = null; -this.bitDepth = 0; -this.refreshRate = 0; -Clazz.instantialize (this, arguments); -}, java.awt, "DisplayMode"); -Clazz.makeConstructor (c$, -function (width, height, bitDepth, refreshRate) { -this.size = new java.awt.Dimension (width, height); -this.bitDepth = bitDepth; -this.refreshRate = refreshRate; -}, "~N,~N,~N,~N"); -Clazz.defineMethod (c$, "getHeight", -function () { -return this.size.height; -}); -Clazz.defineMethod (c$, "getWidth", -function () { -return this.size.width; -}); -Clazz.defineMethod (c$, "getBitDepth", -function () { -return this.bitDepth; -}); -Clazz.defineMethod (c$, "getRefreshRate", -function () { -return this.refreshRate; -}); -Clazz.defineMethod (c$, "equals", -function (dm) { -if (dm == null) { -return false; -}return (this.getHeight () == dm.getHeight () && this.getWidth () == dm.getWidth () && this.getBitDepth () == dm.getBitDepth () && this.getRefreshRate () == dm.getRefreshRate ()); -}, "java.awt.DisplayMode"); -Clazz.defineMethod (c$, "equals", -function (dm) { -if (Clazz.instanceOf (dm, java.awt.DisplayMode)) { -return this.equals (dm); -} else { -return false; -}}, "~O"); -Clazz.overrideMethod (c$, "hashCode", -function () { -return this.getWidth () + this.getHeight () + this.getBitDepth () * 7 + this.getRefreshRate () * 13; -}); -Clazz.defineStatics (c$, -"BIT_DEPTH_MULTI", -1, -"REFRESH_RATE_UNKNOWN", 0); -}); +Clazz.declarePackage ("java.awt"); +Clazz.load (null, "java.awt.DisplayMode", ["java.awt.Dimension"], function () { +c$ = Clazz.decorateAsClass (function () { +this.size = null; +this.bitDepth = 0; +this.refreshRate = 0; +Clazz.instantialize (this, arguments); +}, java.awt, "DisplayMode"); +Clazz.makeConstructor (c$, +function (width, height, bitDepth, refreshRate) { +this.size = new java.awt.Dimension (width, height); +this.bitDepth = bitDepth; +this.refreshRate = refreshRate; +}, "~N,~N,~N,~N"); +Clazz.defineMethod (c$, "getHeight", +function () { +return this.size.height; +}); +Clazz.defineMethod (c$, "getWidth", +function () { +return this.size.width; +}); +Clazz.defineMethod (c$, "getBitDepth", +function () { +return this.bitDepth; +}); +Clazz.defineMethod (c$, "getRefreshRate", +function () { +return this.refreshRate; +}); +Clazz.defineMethod (c$, "equals", +function (dm) { +if (dm == null) { +return false; +}return (this.getHeight () == dm.getHeight () && this.getWidth () == dm.getWidth () && this.getBitDepth () == dm.getBitDepth () && this.getRefreshRate () == dm.getRefreshRate ()); +}, "java.awt.DisplayMode"); +Clazz.defineMethod (c$, "equals", +function (dm) { +if (Clazz.instanceOf (dm, java.awt.DisplayMode)) { +return this.equals (dm); +} else { +return false; +}}, "~O"); +Clazz.overrideMethod (c$, "hashCode", +function () { +return this.getWidth () + this.getHeight () + this.getBitDepth () * 7 + this.getRefreshRate () * 13; +}); +Clazz.defineStatics (c$, +"BIT_DEPTH_MULTI", -1, +"REFRESH_RATE_UNKNOWN", 0); +});