Class RichToolTipManager
java.lang.Object
java.awt.event.MouseAdapter
org.pushingpixels.flamingo.api.common.RichToolTipManager
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
protected class
static class
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the dismissal delay value.int
Returns the initial delay value.void
mouseDragged
(MouseEvent event) void
mouseEntered
(MouseEvent event) void
mouseExited
(MouseEvent event) void
mouseMoved
(MouseEvent event) void
mousePressed
(MouseEvent event) void
Registers a component for tooltip management.void
setDismissDelay
(int milliseconds) Specifies the dismissal delay value.void
setInitialDelay
(int milliseconds) Specifies the initial delay value.static RichToolTipManager
Returns a sharedToolTipManager
instance.void
Removes a component from tooltip control.Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseReleased, mouseWheelMoved
-
Method Details
-
setInitialDelay
public void setInitialDelay(int milliseconds) Specifies the initial delay value.- Parameters:
milliseconds
- the number of milliseconds to delay (after the cursor has paused) before displaying the tooltip- See Also:
-
getInitialDelay
public int getInitialDelay()Returns the initial delay value.- Returns:
- an integer representing the initial delay value, in milliseconds
- See Also:
-
setDismissDelay
public void setDismissDelay(int milliseconds) Specifies the dismissal delay value.- Parameters:
milliseconds
- the number of milliseconds to delay before taking away the tooltip- See Also:
-
getDismissDelay
public int getDismissDelay()Returns the dismissal delay value.- Returns:
- an integer representing the dismissal delay value, in milliseconds
- See Also:
-
registerComponent
Registers a component for tooltip management.This will register key bindings to show and hide the tooltip text only if
component
has focus bindings. This is done so that components that are not normally focus traversable, such asJLabel
, are not made focus traversable as a result of invoking this method.- Parameters:
comp
- aJComponent
object to add- See Also:
-
unregisterComponent
Removes a component from tooltip control.- Parameters:
comp
- aJComponent
object to remove
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
- Overrides:
mouseEntered
in classMouseAdapter
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
- Overrides:
mouseExited
in classMouseAdapter
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
- Overrides:
mouseDragged
in classMouseAdapter
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
- Overrides:
mouseMoved
in classMouseAdapter
-