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)
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
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
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. */
42 import java
.awt
.event
.*;
46 * @author Andrew Selkirk
49 public class ToolTipManager
extends MouseAdapter
implements MouseMotionListener
{
51 //-------------------------------------------------------------
52 // Classes ----------------------------------------------------
53 //-------------------------------------------------------------
56 * stillInsideTimerAction
58 protected class stillInsideTimerAction
implements ActionListener
{
60 //-------------------------------------------------------------
61 // Variables --------------------------------------------------
62 //-------------------------------------------------------------
65 //-------------------------------------------------------------
66 // Initialization ---------------------------------------------
67 //-------------------------------------------------------------
70 * Constructor stillInsideTimerAction
73 protected stillInsideTimerAction(ToolTipManager manager
) {
75 } // stillInsideTimerAction()
78 //-------------------------------------------------------------
79 // Methods ----------------------------------------------------
80 //-------------------------------------------------------------
86 public void actionPerformed(ActionEvent event
) {
88 } // actionPerformed()
91 } // stillInsideTimerAction
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
) {
113 } // outsideTimerAction()
116 //-------------------------------------------------------------
117 // Methods ----------------------------------------------------
118 //-------------------------------------------------------------
124 public void actionPerformed(ActionEvent event
) {
126 } // actionPerformed()
129 } // outsideTimerAction
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
) {
151 } // insideTimerAction()
154 //-------------------------------------------------------------
155 // Methods ----------------------------------------------------
156 //-------------------------------------------------------------
162 public void actionPerformed(ActionEvent event
) {
164 } // actionPerformed()
167 } // insideTimerAction
170 //-------------------------------------------------------------
171 // Variables --------------------------------------------------
172 //-------------------------------------------------------------
197 MouseEvent mouseEvent
;
202 boolean showImmediately
;
217 private long timerEnter
;
220 * lightWeightPopupEnabled
222 protected boolean lightWeightPopupEnabled
;
225 * heavyWeightPopupEnabled
227 protected boolean heavyWeightPopupEnabled
;
230 //-------------------------------------------------------------
231 // Initialization ---------------------------------------------
232 //-------------------------------------------------------------
235 * Constructor ToolTipManager
239 } // ToolTipManager()
242 //-------------------------------------------------------------
243 // Methods ----------------------------------------------------
244 //-------------------------------------------------------------
248 * @returns ToolTipManager
250 public static ToolTipManager
sharedInstance() {
252 } // sharedInstance()
256 * @param enabled TODO
258 public void setEnabled(boolean enabled
) {
266 public boolean isEnabled() {
267 return false; // TODO
271 * isLightWeightPopupEnabled
274 public boolean isLightWeightPopupEnabled() {
275 return false; // TODO
276 } // isLightWeightPopupEnabled()
279 * setLightWeightPopupEnabled
280 * @param enabled TODO
282 public void setLightWeightPopupEnabled(boolean enabled
) {
284 } // setLightWeightPopupEnabled()
290 public int getInitialDelay() {
292 } // getInitialDelay()
298 public void setInitialDelay(int delay
) {
300 } // setInitialDelay()
306 public int getDismissDelay() {
308 } // getDismissDelay()
314 public void setDismissDelay(int delay
) {
316 } // setDismissDelay()
322 public int getReshowDelay() {
324 } // getReshowDelay()
330 public void setReshowDelay(int delay
) {
332 } // setReshowDelay()
336 * @param component TODO
338 public void registerComponent(JComponent component
) {
340 } // registerComponent()
343 * unregisterComponent
344 * @param component TODO
346 public void unregisterComponent(JComponent component
) {
348 } // unregisterComponent()
354 public void mouseEntered(MouseEvent event
) {
362 public void mouseExited(MouseEvent event
) {
370 public void mousePressed(MouseEvent event
) {
378 public void mouseDragged(MouseEvent event
) {
386 public void mouseMoved(MouseEvent event
) {