1 Clazz.declarePackage ("jalview.appletgui");
2 Clazz.load (null, "jalview.appletgui.Tooltip", ["awt2swing.Frame", "java.applet.Applet", "java.awt.Toolkit"], function () {
3 c$ = Clazz.decorateAsClass (function () {
6 this.setPosition = false;
8 this.mainContainer = null;
9 this.mainLayout = null;
11 this.VERTICAL_OFFSET = 20;
12 this.HORIZONTAL_ENLARGE = 10;
14 this.linkImage = null;
16 Clazz.instantialize (this, arguments);
17 }, jalview.appletgui, "Tooltip");
18 Clazz.defineMethod (c$, "setVisible",
21 Clazz.makeConstructor (c$,
22 function (tip, owner) {
25 var url = this.getClass ().getResource ("/images/link.gif");
27 this.linkImage = java.awt.Toolkit.getDefaultToolkit ().getImage (url);
28 }}, "~S,java.awt.Component");
29 Clazz.defineMethod (c$, "setTip",
31 System.err.println ("Tooltip: " + tip);
33 Clazz.defineMethod (c$, "setTipLocation",
35 }, "java.awt.event.MouseEvent");
36 Clazz.defineMethod (c$, "removeToolTip",
39 Clazz.defineMethod (c$, "mouseEntered",
41 this.setTipLocation (me);
42 }, "java.awt.event.MouseEvent");
43 Clazz.defineMethod (c$, "mouseExited",
45 this.removeToolTip ();
46 }, "java.awt.event.MouseEvent");
47 Clazz.defineMethod (c$, "mousePressed",
49 this.removeToolTip ();
50 }, "java.awt.event.MouseEvent");
51 Clazz.defineMethod (c$, "mouseReleased",
53 }, "java.awt.event.MouseEvent");
54 Clazz.defineMethod (c$, "mouseClicked",
56 }, "java.awt.event.MouseEvent");
57 Clazz.defineMethod (c$, "mouseMoved",
60 this.setTipLocation (me);
61 } else if (this.setPosition) {
62 this.setTipLocation (me);
63 }}, "java.awt.event.MouseEvent");
64 Clazz.defineMethod (c$, "mouseDragged",
66 }, "java.awt.event.MouseEvent");