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 classprotected classstatic class -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dismissal delay value.intReturns the initial delay value.voidmouseDragged(MouseEvent event) voidmouseEntered(MouseEvent event) voidmouseExited(MouseEvent event) voidmouseMoved(MouseEvent event) voidmousePressed(MouseEvent event) voidRegisters a component for tooltip management.voidsetDismissDelay(int milliseconds) Specifies the dismissal delay value.voidsetInitialDelay(int milliseconds) Specifies the initial delay value.static RichToolTipManagerReturns a sharedToolTipManagerinstance.voidRemoves 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
componenthas 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- aJComponentobject to add- See Also:
-
unregisterComponent
Removes a component from tooltip control.- Parameters:
comp- aJComponentobject to remove
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classMouseAdapter
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener- Overrides:
mouseExitedin classMouseAdapter
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMouseAdapter
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener- Overrides:
mouseMovedin classMouseAdapter
-