Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jalview / appletgui / Tooltip.js
index e78c5aa..c797ecb 100644 (file)
@@ -1,67 +1,67 @@
-Clazz.declarePackage ("jalview.appletgui");\r
-Clazz.load (null, "jalview.appletgui.Tooltip", ["awt2swing.Frame", "java.applet.Applet", "java.awt.Toolkit"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.tip = null;\r
-this.lastTip = "";\r
-this.setPosition = false;\r
-this.owner = null;\r
-this.mainContainer = null;\r
-this.mainLayout = null;\r
-this.shown = false;\r
-this.VERTICAL_OFFSET = 20;\r
-this.HORIZONTAL_ENLARGE = 10;\r
-this.fontHeight = 0;\r
-this.linkImage = null;\r
-this.fm = null;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.appletgui, "Tooltip");\r
-Clazz.defineMethod (c$, "setVisible", \r
-function (b) {\r
-}, "~B");\r
-Clazz.makeConstructor (c$, \r
-function (tip, owner) {\r
-this.owner = owner;\r
-this.setTip (tip);\r
-var url = this.getClass ().getResource ("/images/link.gif");\r
-if (url != null) {\r
-this.linkImage = java.awt.Toolkit.getDefaultToolkit ().getImage (url);\r
-}}, "~S,java.awt.Component");\r
-Clazz.defineMethod (c$, "setTip", \r
-function (tip) {\r
-System.err.println ("Tooltip: " + tip);\r
-}, "~S");\r
-Clazz.defineMethod (c$, "setTipLocation", \r
-function (evt) {\r
-}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "removeToolTip", \r
- function () {\r
-});\r
-Clazz.defineMethod (c$, "mouseEntered", \r
-function (me) {\r
-this.setTipLocation (me);\r
-}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "mouseExited", \r
-function (me) {\r
-this.removeToolTip ();\r
-}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "mousePressed", \r
-function (me) {\r
-this.removeToolTip ();\r
-}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "mouseReleased", \r
-function (me) {\r
-}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "mouseClicked", \r
-function (me) {\r
-}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "mouseMoved", \r
-function (me) {\r
-if (!this.shown) {\r
-this.setTipLocation (me);\r
-} else if (this.setPosition) {\r
-this.setTipLocation (me);\r
-}}, "java.awt.event.MouseEvent");\r
-Clazz.defineMethod (c$, "mouseDragged", \r
-function (me) {\r
-}, "java.awt.event.MouseEvent");\r
-});\r
+Clazz.declarePackage ("jalview.appletgui");
+Clazz.load (null, "jalview.appletgui.Tooltip", ["awt2swing.Frame", "java.applet.Applet", "java.awt.Toolkit"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.tip = null;
+this.lastTip = "";
+this.setPosition = false;
+this.owner = null;
+this.mainContainer = null;
+this.mainLayout = null;
+this.shown = false;
+this.VERTICAL_OFFSET = 20;
+this.HORIZONTAL_ENLARGE = 10;
+this.fontHeight = 0;
+this.linkImage = null;
+this.fm = null;
+Clazz.instantialize (this, arguments);
+}, jalview.appletgui, "Tooltip");
+Clazz.defineMethod (c$, "setVisible", 
+function (b) {
+}, "~B");
+Clazz.makeConstructor (c$, 
+function (tip, owner) {
+this.owner = owner;
+this.setTip (tip);
+var url = this.getClass ().getResource ("/images/link.gif");
+if (url != null) {
+this.linkImage = java.awt.Toolkit.getDefaultToolkit ().getImage (url);
+}}, "~S,java.awt.Component");
+Clazz.defineMethod (c$, "setTip", 
+function (tip) {
+System.err.println ("Tooltip: " + tip);
+}, "~S");
+Clazz.defineMethod (c$, "setTipLocation", 
+function (evt) {
+}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "removeToolTip", 
+ function () {
+});
+Clazz.defineMethod (c$, "mouseEntered", 
+function (me) {
+this.setTipLocation (me);
+}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "mouseExited", 
+function (me) {
+this.removeToolTip ();
+}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "mousePressed", 
+function (me) {
+this.removeToolTip ();
+}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "mouseReleased", 
+function (me) {
+}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "mouseClicked", 
+function (me) {
+}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "mouseMoved", 
+function (me) {
+if (!this.shown) {
+this.setTipLocation (me);
+} else if (this.setPosition) {
+this.setTipLocation (me);
+}}, "java.awt.event.MouseEvent");
+Clazz.defineMethod (c$, "mouseDragged", 
+function (me) {
+}, "java.awt.event.MouseEvent");
+});