2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / javax / swing / ToolTipManager.java
blobffd5e4f1f5a9a8b31d54e0151591e2b375f3d390
1 /* ToolTipManager.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package javax.swing;
40 // Imports
41 import java.awt.*;
42 import java.awt.event.*;
44 /**
45 * ToolTipManager
46 * @author Andrew Selkirk
47 * @version 1.0
49 public class ToolTipManager extends MouseAdapter implements MouseMotionListener {
51 //-------------------------------------------------------------
52 // Classes ----------------------------------------------------
53 //-------------------------------------------------------------
55 /**
56 * stillInsideTimerAction
58 protected class stillInsideTimerAction implements ActionListener {
60 //-------------------------------------------------------------
61 // Variables --------------------------------------------------
62 //-------------------------------------------------------------
65 //-------------------------------------------------------------
66 // Initialization ---------------------------------------------
67 //-------------------------------------------------------------
69 /**
70 * Constructor stillInsideTimerAction
71 * @param manager TODO
73 protected stillInsideTimerAction(ToolTipManager manager) {
74 // TODO
75 } // stillInsideTimerAction()
78 //-------------------------------------------------------------
79 // Methods ----------------------------------------------------
80 //-------------------------------------------------------------
82 /**
83 * actionPerformed
84 * @param event TODO
86 public void actionPerformed(ActionEvent event) {
87 // TODO
88 } // actionPerformed()
91 } // stillInsideTimerAction
93 /**
94 * outsideTimerAction
96 protected class outsideTimerAction implements ActionListener {
98 //-------------------------------------------------------------
99 // Variables --------------------------------------------------
100 //-------------------------------------------------------------
103 //-------------------------------------------------------------
104 // Initialization ---------------------------------------------
105 //-------------------------------------------------------------
108 * Constructor outsideTimerAction
109 * @param manager TODO
111 protected outsideTimerAction(ToolTipManager manager) {
112 // TODO
113 } // outsideTimerAction()
116 //-------------------------------------------------------------
117 // Methods ----------------------------------------------------
118 //-------------------------------------------------------------
121 * actionPerformed
122 * @param value0 TODO
124 public void actionPerformed(ActionEvent event) {
125 // TODO
126 } // actionPerformed()
129 } // outsideTimerAction
132 * insideTimerAction
134 protected class insideTimerAction implements ActionListener {
136 //-------------------------------------------------------------
137 // Variables --------------------------------------------------
138 //-------------------------------------------------------------
141 //-------------------------------------------------------------
142 // Initialization ---------------------------------------------
143 //-------------------------------------------------------------
146 * Constructor insideTimerAction
147 * @param manager TODO
149 protected insideTimerAction(ToolTipManager manager) {
150 // TODO
151 } // insideTimerAction()
154 //-------------------------------------------------------------
155 // Methods ----------------------------------------------------
156 //-------------------------------------------------------------
159 * actionPerformed
160 * @param event TODO
162 public void actionPerformed(ActionEvent event) {
163 // TODO
164 } // actionPerformed()
167 } // insideTimerAction
170 //-------------------------------------------------------------
171 // Variables --------------------------------------------------
172 //-------------------------------------------------------------
175 * enterTimer
177 Timer enterTimer;
180 * exitTimer
182 Timer exitTimer;
185 * insideTimer
187 Timer insideTimer;
190 * toolTipText
192 String toolTipText;
195 * mouseEvent
197 MouseEvent mouseEvent;
200 * showImmediately
202 boolean showImmediately;
205 * tip
207 JToolTip tip;
210 * enabled
212 boolean enabled;
215 * timerEnter
217 private long timerEnter;
220 * lightWeightPopupEnabled
222 protected boolean lightWeightPopupEnabled;
225 * heavyWeightPopupEnabled
227 protected boolean heavyWeightPopupEnabled;
230 //-------------------------------------------------------------
231 // Initialization ---------------------------------------------
232 //-------------------------------------------------------------
235 * Constructor ToolTipManager
237 ToolTipManager() {
238 // TODO
239 } // ToolTipManager()
242 //-------------------------------------------------------------
243 // Methods ----------------------------------------------------
244 //-------------------------------------------------------------
247 * sharedInstance
248 * @returns ToolTipManager
250 public static ToolTipManager sharedInstance() {
251 return null; // TODO
252 } // sharedInstance()
255 * setEnabled
256 * @param enabled TODO
258 public void setEnabled(boolean enabled) {
259 // TODO
260 } // setEnabled()
263 * isEnabled
264 * @returns boolean
266 public boolean isEnabled() {
267 return false; // TODO
268 } // isEnabled()
271 * isLightWeightPopupEnabled
272 * @returns boolean
274 public boolean isLightWeightPopupEnabled() {
275 return false; // TODO
276 } // isLightWeightPopupEnabled()
279 * setLightWeightPopupEnabled
280 * @param enabled TODO
282 public void setLightWeightPopupEnabled(boolean enabled) {
283 // TODO
284 } // setLightWeightPopupEnabled()
287 * getInitialDelay
288 * @returns int
290 public int getInitialDelay() {
291 return 0; // TODO
292 } // getInitialDelay()
295 * setInitialDelay
296 * @param delay TODO
298 public void setInitialDelay(int delay) {
299 // TODO
300 } // setInitialDelay()
303 * getDismissDelay
304 * @returns int
306 public int getDismissDelay() {
307 return 0; // TODO
308 } // getDismissDelay()
311 * setDismissDelay
312 * @param delay TODO
314 public void setDismissDelay(int delay) {
315 // TODO
316 } // setDismissDelay()
319 * getReshowDelay
320 * @returns int
322 public int getReshowDelay() {
323 return 0; // TODO
324 } // getReshowDelay()
327 * setReshowDelay
328 * @param delay TODO
330 public void setReshowDelay(int delay) {
331 // TODO
332 } // setReshowDelay()
335 * registerComponent
336 * @param component TODO
338 public void registerComponent(JComponent component) {
339 // TODO
340 } // registerComponent()
343 * unregisterComponent
344 * @param component TODO
346 public void unregisterComponent(JComponent component) {
347 // TODO
348 } // unregisterComponent()
351 * mouseEntered
352 * @param event TODO
354 public void mouseEntered(MouseEvent event) {
355 // TODO
356 } // mouseEntered()
359 * mouseExited
360 * @param event TODO
362 public void mouseExited(MouseEvent event) {
363 // TODO
364 } // mouseExited()
367 * mousePressed
368 * @param event TODO
370 public void mousePressed(MouseEvent event) {
371 // TODO
372 } // mousePressed()
375 * mouseDragged
376 * @param event TODO
378 public void mouseDragged(MouseEvent event) {
379 // TODO
380 } // mouseDragged()
383 * mouseMoved
384 * @param event TODO
386 public void mouseMoved(MouseEvent event) {
387 // TODO
388 } // mouseMoved()
391 } // ToolTipManager