public class RichToolTipManager
extends java.awt.event.MouseAdapter
implements java.awt.event.MouseMotionListener
Modifier and Type | Class and Description |
---|---|
protected class |
RichToolTipManager.DismissTimerAction |
protected class |
RichToolTipManager.InitialDelayTimerAction |
static class |
RichToolTipManager.JTrackableComponent |
Modifier and Type | Method and Description |
---|---|
int |
getDismissDelay()
Returns the dismissal delay value.
|
int |
getInitialDelay()
Returns the initial delay value.
|
void |
mouseDragged(java.awt.event.MouseEvent event) |
void |
mouseEntered(java.awt.event.MouseEvent event) |
void |
mouseExited(java.awt.event.MouseEvent event) |
void |
mouseMoved(java.awt.event.MouseEvent event) |
void |
mousePressed(java.awt.event.MouseEvent event) |
void |
registerComponent(RichToolTipManager.JTrackableComponent comp)
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 |
sharedInstance()
Returns a shared
ToolTipManager instance. |
void |
unregisterComponent(RichToolTipManager.JTrackableComponent comp)
Removes a component from tooltip control.
|
public void setInitialDelay(int milliseconds)
milliseconds
- the number of milliseconds to delay (after the cursor has
paused) before displaying the tooltipgetInitialDelay()
public int getInitialDelay()
setInitialDelay(int)
public void setDismissDelay(int milliseconds)
milliseconds
- the number of milliseconds to delay before taking away the
tooltipgetDismissDelay()
public int getDismissDelay()
setDismissDelay(int)
public static RichToolTipManager sharedInstance()
ToolTipManager
instance.ToolTipManager
objectpublic void registerComponent(RichToolTipManager.JTrackableComponent comp)
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 as
JLabel
, are not made focus traversable as a result of
invoking this method.
comp
- a JComponent
object to addComponent.isFocusTraversable()
public void unregisterComponent(RichToolTipManager.JTrackableComponent comp)
comp
- a JComponent
object to removepublic void mouseEntered(java.awt.event.MouseEvent event)
mouseEntered
in interface java.awt.event.MouseListener
mouseEntered
in class java.awt.event.MouseAdapter
public void mouseExited(java.awt.event.MouseEvent event)
mouseExited
in interface java.awt.event.MouseListener
mouseExited
in class java.awt.event.MouseAdapter
public void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class java.awt.event.MouseAdapter
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class java.awt.event.MouseAdapter