43 |
import java.awt.event.MouseEvent; |
import java.awt.event.MouseEvent; |
44 |
import java.awt.event.MouseMotionListener; |
import java.awt.event.MouseMotionListener; |
45 |
|
|
46 |
|
|
47 |
/** |
/** |
48 |
* ToolTipManager |
* ToolTipManager |
49 |
|
* |
50 |
* @author Andrew Selkirk |
* @author Andrew Selkirk |
|
* @version 1.0 |
|
51 |
*/ |
*/ |
52 |
public class ToolTipManager extends MouseAdapter implements MouseMotionListener { |
public class ToolTipManager extends MouseAdapter |
53 |
|
implements MouseMotionListener |
54 |
//------------------------------------------------------------- |
{ |
|
// Classes ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
55 |
/** |
/** |
56 |
* stillInsideTimerAction |
* stillInsideTimerAction |
57 |
*/ |
*/ |
58 |
protected class stillInsideTimerAction implements ActionListener { |
protected class stillInsideTimerAction |
59 |
|
implements ActionListener |
60 |
//------------------------------------------------------------- |
{ |
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
61 |
/** |
/** |
62 |
* Constructor stillInsideTimerAction |
* Constructor stillInsideTimerAction |
|
* @param manager TODO |
|
63 |
*/ |
*/ |
64 |
protected stillInsideTimerAction(ToolTipManager manager) { |
protected stillInsideTimerAction() |
65 |
|
{ |
66 |
// TODO |
// TODO |
67 |
} // stillInsideTimerAction() |
} |
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
68 |
|
|
69 |
/** |
/** |
70 |
* actionPerformed |
* actionPerformed |
71 |
* @param event TODO |
* @param event TODO |
72 |
*/ |
*/ |
73 |
public void actionPerformed(ActionEvent event) { |
public void actionPerformed(ActionEvent event) |
74 |
|
{ |
75 |
// TODO |
// TODO |
76 |
} // actionPerformed() |
} |
77 |
|
} |
|
|
|
|
} // stillInsideTimerAction |
|
78 |
|
|
79 |
/** |
/** |
80 |
* outsideTimerAction |
* outsideTimerAction |
81 |
*/ |
*/ |
82 |
protected class outsideTimerAction implements ActionListener { |
protected class outsideTimerAction |
83 |
|
implements ActionListener |
84 |
//------------------------------------------------------------- |
{ |
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
85 |
/** |
/** |
86 |
* Constructor outsideTimerAction |
* Constructor outsideTimerAction |
|
* @param manager TODO |
|
87 |
*/ |
*/ |
88 |
protected outsideTimerAction(ToolTipManager manager) { |
protected outsideTimerAction() |
89 |
|
{ |
90 |
// TODO |
// TODO |
91 |
} // outsideTimerAction() |
} |
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
92 |
|
|
93 |
/** |
/** |
94 |
* actionPerformed |
* actionPerformed |
95 |
* @param value0 TODO |
* @param value0 TODO |
96 |
*/ |
*/ |
97 |
public void actionPerformed(ActionEvent event) { |
public void actionPerformed(ActionEvent event) |
98 |
|
{ |
99 |
// TODO |
// TODO |
100 |
} // actionPerformed() |
} |
101 |
|
} |
|
|
|
|
} // outsideTimerAction |
|
102 |
|
|
103 |
/** |
/** |
104 |
* insideTimerAction |
* insideTimerAction |
105 |
*/ |
*/ |
106 |
protected class insideTimerAction implements ActionListener { |
protected class insideTimerAction |
107 |
|
implements ActionListener |
108 |
//------------------------------------------------------------- |
{ |
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
109 |
/** |
/** |
110 |
* Constructor insideTimerAction |
* Constructor insideTimerAction |
|
* @param manager TODO |
|
111 |
*/ |
*/ |
112 |
protected insideTimerAction(ToolTipManager manager) { |
protected insideTimerAction() |
113 |
|
{ |
114 |
// TODO |
// TODO |
115 |
} // insideTimerAction() |
} |
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
116 |
|
|
117 |
/** |
/** |
118 |
* actionPerformed |
* actionPerformed |
119 |
* @param event TODO |
* @param event TODO |
120 |
*/ |
*/ |
121 |
public void actionPerformed(ActionEvent event) { |
public void actionPerformed(ActionEvent event) |
122 |
|
{ |
123 |
// TODO |
// TODO |
124 |
} // actionPerformed() |
} |
125 |
|
} |
|
|
|
|
} // insideTimerAction |
|
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Variables -------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
126 |
|
|
127 |
/** |
/** |
128 |
* enterTimer |
* enterTimer |
179 |
*/ |
*/ |
180 |
protected boolean heavyWeightPopupEnabled; |
protected boolean heavyWeightPopupEnabled; |
181 |
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Initialization --------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
|
|
|
182 |
/** |
/** |
183 |
* Constructor ToolTipManager |
* Constructor ToolTipManager |
184 |
*/ |
*/ |
185 |
ToolTipManager() { |
ToolTipManager() |
186 |
|
{ |
187 |
// TODO |
// TODO |
188 |
} // ToolTipManager() |
} |
|
|
|
|
|
|
|
//------------------------------------------------------------- |
|
|
// Methods ---------------------------------------------------- |
|
|
//------------------------------------------------------------- |
|
189 |
|
|
190 |
/** |
/** |
191 |
* sharedInstance |
* sharedInstance |
192 |
* @returns ToolTipManager |
* @return ToolTipManager |
193 |
*/ |
*/ |
194 |
public static ToolTipManager sharedInstance() { |
public static ToolTipManager sharedInstance() |
195 |
|
{ |
196 |
return null; // TODO |
return null; // TODO |
197 |
} // sharedInstance() |
} |
198 |
|
|
199 |
/** |
/** |
200 |
* setEnabled |
* setEnabled |
201 |
* @param enabled TODO |
* @param enabled TODO |
202 |
*/ |
*/ |
203 |
public void setEnabled(boolean enabled) { |
public void setEnabled(boolean enabled) |
204 |
|
{ |
205 |
// TODO |
// TODO |
206 |
} // setEnabled() |
} |
207 |
|
|
208 |
/** |
/** |
209 |
* isEnabled |
* isEnabled |
210 |
* @returns boolean |
* @return boolean |
211 |
*/ |
*/ |
212 |
public boolean isEnabled() { |
public boolean isEnabled() |
213 |
|
{ |
214 |
return false; // TODO |
return false; // TODO |
215 |
} // isEnabled() |
} |
216 |
|
|
217 |
/** |
/** |
218 |
* isLightWeightPopupEnabled |
* isLightWeightPopupEnabled |
219 |
* @returns boolean |
* @return boolean |
220 |
*/ |
*/ |
221 |
public boolean isLightWeightPopupEnabled() { |
public boolean isLightWeightPopupEnabled() |
222 |
|
{ |
223 |
return false; // TODO |
return false; // TODO |
224 |
} // isLightWeightPopupEnabled() |
} |
225 |
|
|
226 |
/** |
/** |
227 |
* setLightWeightPopupEnabled |
* setLightWeightPopupEnabled |
228 |
* @param enabled TODO |
* @param enabled TODO |
229 |
*/ |
*/ |
230 |
public void setLightWeightPopupEnabled(boolean enabled) { |
public void setLightWeightPopupEnabled(boolean enabled) |
231 |
|
{ |
232 |
// TODO |
// TODO |
233 |
} // setLightWeightPopupEnabled() |
} |
234 |
|
|
235 |
/** |
/** |
236 |
* getInitialDelay |
* getInitialDelay |
237 |
* @returns int |
* @return int |
238 |
*/ |
*/ |
239 |
public int getInitialDelay() { |
public int getInitialDelay() |
240 |
|
{ |
241 |
return 0; // TODO |
return 0; // TODO |
242 |
} // getInitialDelay() |
} |
243 |
|
|
244 |
/** |
/** |
245 |
* setInitialDelay |
* setInitialDelay |
246 |
* @param delay TODO |
* @param delay TODO |
247 |
*/ |
*/ |
248 |
public void setInitialDelay(int delay) { |
public void setInitialDelay(int delay) |
249 |
|
{ |
250 |
// TODO |
// TODO |
251 |
} // setInitialDelay() |
} |
252 |
|
|
253 |
/** |
/** |
254 |
* getDismissDelay |
* getDismissDelay |
255 |
* @returns int |
* @return int |
256 |
*/ |
*/ |
257 |
public int getDismissDelay() { |
public int getDismissDelay() |
258 |
|
{ |
259 |
return 0; // TODO |
return 0; // TODO |
260 |
} // getDismissDelay() |
} |
261 |
|
|
262 |
/** |
/** |
263 |
* setDismissDelay |
* setDismissDelay |
264 |
* @param delay TODO |
* @param delay TODO |
265 |
*/ |
*/ |
266 |
public void setDismissDelay(int delay) { |
public void setDismissDelay(int delay) |
267 |
|
{ |
268 |
// TODO |
// TODO |
269 |
} // setDismissDelay() |
} |
270 |
|
|
271 |
/** |
/** |
272 |
* getReshowDelay |
* getReshowDelay |
273 |
* @returns int |
* @return int |
274 |
*/ |
*/ |
275 |
public int getReshowDelay() { |
public int getReshowDelay() |
276 |
|
{ |
277 |
return 0; // TODO |
return 0; // TODO |
278 |
} // getReshowDelay() |
} |
279 |
|
|
280 |
/** |
/** |
281 |
* setReshowDelay |
* setReshowDelay |
282 |
* @param delay TODO |
* @param delay TODO |
283 |
*/ |
*/ |
284 |
public void setReshowDelay(int delay) { |
public void setReshowDelay(int delay) |
285 |
|
{ |
286 |
// TODO |
// TODO |
287 |
} // setReshowDelay() |
} |
288 |
|
|
289 |
/** |
/** |
290 |
* registerComponent |
* registerComponent |
291 |
* @param component TODO |
* @param component TODO |
292 |
*/ |
*/ |
293 |
public void registerComponent(JComponent component) { |
public void registerComponent(JComponent component) |
294 |
|
{ |
295 |
// TODO |
// TODO |
296 |
} // registerComponent() |
} |
297 |
|
|
298 |
/** |
/** |
299 |
* unregisterComponent |
* unregisterComponent |
300 |
* @param component TODO |
* @param component TODO |
301 |
*/ |
*/ |
302 |
public void unregisterComponent(JComponent component) { |
public void unregisterComponent(JComponent component) |
303 |
|
{ |
304 |
// TODO |
// TODO |
305 |
} // unregisterComponent() |
} |
306 |
|
|
307 |
/** |
/** |
308 |
* mouseEntered |
* mouseEntered |
309 |
* @param event TODO |
* @param event TODO |
310 |
*/ |
*/ |
311 |
public void mouseEntered(MouseEvent event) { |
public void mouseEntered(MouseEvent event) |
312 |
|
{ |
313 |
// TODO |
// TODO |
314 |
} // mouseEntered() |
} |
315 |
|
|
316 |
/** |
/** |
317 |
* mouseExited |
* mouseExited |
318 |
* @param event TODO |
* @param event TODO |
319 |
*/ |
*/ |
320 |
public void mouseExited(MouseEvent event) { |
public void mouseExited(MouseEvent event) |
321 |
|
{ |
322 |
// TODO |
// TODO |
323 |
} // mouseExited() |
} |
324 |
|
|
325 |
/** |
/** |
326 |
* mousePressed |
* mousePressed |
327 |
* @param event TODO |
* @param event TODO |
328 |
*/ |
*/ |
329 |
public void mousePressed(MouseEvent event) { |
public void mousePressed(MouseEvent event) |
330 |
|
{ |
331 |
// TODO |
// TODO |
332 |
} // mousePressed() |
} |
333 |
|
|
334 |
/** |
/** |
335 |
* mouseDragged |
* mouseDragged |
336 |
* @param event TODO |
* @param event TODO |
337 |
*/ |
*/ |
338 |
public void mouseDragged(MouseEvent event) { |
public void mouseDragged(MouseEvent event) |
339 |
|
{ |
340 |
// TODO |
// TODO |
341 |
} // mouseDragged() |
} |
342 |
|
|
343 |
/** |
/** |
344 |
* mouseMoved |
* mouseMoved |
345 |
* @param event TODO |
* @param event TODO |
346 |
*/ |
*/ |
347 |
public void mouseMoved(MouseEvent event) { |
public void mouseMoved(MouseEvent event) |
348 |
|
{ |
349 |
// TODO |
// TODO |
350 |
} // mouseMoved() |
} |
351 |
|
} |
|
|
|
|
} // ToolTipManager |
|