source: trunk/gcc/libjava/javax/swing/ToolTipManager.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 8.8 KB
Line 
1/* ToolTipManager.java --
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package javax.swing;
39
40// Imports
41import java.awt.*;
42import java.awt.event.*;
43
44/**
45 * ToolTipManager
46 * @author Andrew Selkirk
47 * @version 1.0
48 */
49public class ToolTipManager extends MouseAdapter implements MouseMotionListener {
50
51 //-------------------------------------------------------------
52 // Classes ----------------------------------------------------
53 //-------------------------------------------------------------
54
55 /**
56 * stillInsideTimerAction
57 */
58 protected class stillInsideTimerAction implements ActionListener {
59
60 //-------------------------------------------------------------
61 // Variables --------------------------------------------------
62 //-------------------------------------------------------------
63
64
65 //-------------------------------------------------------------
66 // Initialization ---------------------------------------------
67 //-------------------------------------------------------------
68
69 /**
70 * Constructor stillInsideTimerAction
71 * @param manager TODO
72 */
73 protected stillInsideTimerAction(ToolTipManager manager) {
74 // TODO
75 } // stillInsideTimerAction()
76
77
78 //-------------------------------------------------------------
79 // Methods ----------------------------------------------------
80 //-------------------------------------------------------------
81
82 /**
83 * actionPerformed
84 * @param event TODO
85 */
86 public void actionPerformed(ActionEvent event) {
87 // TODO
88 } // actionPerformed()
89
90
91 } // stillInsideTimerAction
92
93 /**
94 * outsideTimerAction
95 */
96 protected class outsideTimerAction implements ActionListener {
97
98 //-------------------------------------------------------------
99 // Variables --------------------------------------------------
100 //-------------------------------------------------------------
101
102
103 //-------------------------------------------------------------
104 // Initialization ---------------------------------------------
105 //-------------------------------------------------------------
106
107 /**
108 * Constructor outsideTimerAction
109 * @param manager TODO
110 */
111 protected outsideTimerAction(ToolTipManager manager) {
112 // TODO
113 } // outsideTimerAction()
114
115
116 //-------------------------------------------------------------
117 // Methods ----------------------------------------------------
118 //-------------------------------------------------------------
119
120 /**
121 * actionPerformed
122 * @param value0 TODO
123 */
124 public void actionPerformed(ActionEvent event) {
125 // TODO
126 } // actionPerformed()
127
128
129 } // outsideTimerAction
130
131 /**
132 * insideTimerAction
133 */
134 protected class insideTimerAction implements ActionListener {
135
136 //-------------------------------------------------------------
137 // Variables --------------------------------------------------
138 //-------------------------------------------------------------
139
140
141 //-------------------------------------------------------------
142 // Initialization ---------------------------------------------
143 //-------------------------------------------------------------
144
145 /**
146 * Constructor insideTimerAction
147 * @param manager TODO
148 */
149 protected insideTimerAction(ToolTipManager manager) {
150 // TODO
151 } // insideTimerAction()
152
153
154 //-------------------------------------------------------------
155 // Methods ----------------------------------------------------
156 //-------------------------------------------------------------
157
158 /**
159 * actionPerformed
160 * @param event TODO
161 */
162 public void actionPerformed(ActionEvent event) {
163 // TODO
164 } // actionPerformed()
165
166
167 } // insideTimerAction
168
169
170 //-------------------------------------------------------------
171 // Variables --------------------------------------------------
172 //-------------------------------------------------------------
173
174 /**
175 * enterTimer
176 */
177 Timer enterTimer;
178
179 /**
180 * exitTimer
181 */
182 Timer exitTimer;
183
184 /**
185 * insideTimer
186 */
187 Timer insideTimer;
188
189 /**
190 * toolTipText
191 */
192 String toolTipText;
193
194 /**
195 * mouseEvent
196 */
197 MouseEvent mouseEvent;
198
199 /**
200 * showImmediately
201 */
202 boolean showImmediately;
203
204 /**
205 * tip
206 */
207 JToolTip tip;
208
209 /**
210 * enabled
211 */
212 boolean enabled;
213
214 /**
215 * timerEnter
216 */
217 private long timerEnter;
218
219 /**
220 * lightWeightPopupEnabled
221 */
222 protected boolean lightWeightPopupEnabled;
223
224 /**
225 * heavyWeightPopupEnabled
226 */
227 protected boolean heavyWeightPopupEnabled;
228
229
230 //-------------------------------------------------------------
231 // Initialization ---------------------------------------------
232 //-------------------------------------------------------------
233
234 /**
235 * Constructor ToolTipManager
236 */
237 ToolTipManager() {
238 // TODO
239 } // ToolTipManager()
240
241
242 //-------------------------------------------------------------
243 // Methods ----------------------------------------------------
244 //-------------------------------------------------------------
245
246 /**
247 * sharedInstance
248 * @returns ToolTipManager
249 */
250 public static ToolTipManager sharedInstance() {
251 return null; // TODO
252 } // sharedInstance()
253
254 /**
255 * setEnabled
256 * @param enabled TODO
257 */
258 public void setEnabled(boolean enabled) {
259 // TODO
260 } // setEnabled()
261
262 /**
263 * isEnabled
264 * @returns boolean
265 */
266 public boolean isEnabled() {
267 return false; // TODO
268 } // isEnabled()
269
270 /**
271 * isLightWeightPopupEnabled
272 * @returns boolean
273 */
274 public boolean isLightWeightPopupEnabled() {
275 return false; // TODO
276 } // isLightWeightPopupEnabled()
277
278 /**
279 * setLightWeightPopupEnabled
280 * @param enabled TODO
281 */
282 public void setLightWeightPopupEnabled(boolean enabled) {
283 // TODO
284 } // setLightWeightPopupEnabled()
285
286 /**
287 * getInitialDelay
288 * @returns int
289 */
290 public int getInitialDelay() {
291 return 0; // TODO
292 } // getInitialDelay()
293
294 /**
295 * setInitialDelay
296 * @param delay TODO
297 */
298 public void setInitialDelay(int delay) {
299 // TODO
300 } // setInitialDelay()
301
302 /**
303 * getDismissDelay
304 * @returns int
305 */
306 public int getDismissDelay() {
307 return 0; // TODO
308 } // getDismissDelay()
309
310 /**
311 * setDismissDelay
312 * @param delay TODO
313 */
314 public void setDismissDelay(int delay) {
315 // TODO
316 } // setDismissDelay()
317
318 /**
319 * getReshowDelay
320 * @returns int
321 */
322 public int getReshowDelay() {
323 return 0; // TODO
324 } // getReshowDelay()
325
326 /**
327 * setReshowDelay
328 * @param delay TODO
329 */
330 public void setReshowDelay(int delay) {
331 // TODO
332 } // setReshowDelay()
333
334 /**
335 * registerComponent
336 * @param component TODO
337 */
338 public void registerComponent(JComponent component) {
339 // TODO
340 } // registerComponent()
341
342 /**
343 * unregisterComponent
344 * @param component TODO
345 */
346 public void unregisterComponent(JComponent component) {
347 // TODO
348 } // unregisterComponent()
349
350 /**
351 * mouseEntered
352 * @param event TODO
353 */
354 public void mouseEntered(MouseEvent event) {
355 // TODO
356 } // mouseEntered()
357
358 /**
359 * mouseExited
360 * @param event TODO
361 */
362 public void mouseExited(MouseEvent event) {
363 // TODO
364 } // mouseExited()
365
366 /**
367 * mousePressed
368 * @param event TODO
369 */
370 public void mousePressed(MouseEvent event) {
371 // TODO
372 } // mousePressed()
373
374 /**
375 * mouseDragged
376 * @param event TODO
377 */
378 public void mouseDragged(MouseEvent event) {
379 // TODO
380 } // mouseDragged()
381
382 /**
383 * mouseMoved
384 * @param event TODO
385 */
386 public void mouseMoved(MouseEvent event) {
387 // TODO
388 } // mouseMoved()
389
390
391} // ToolTipManager
Note: See TracBrowser for help on using the repository browser.