public class TooltipTimerController
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TooltipTimerController.Supplier
The Supplier supplies a tooltip instance when we need it.
|
Constructor and Description |
---|
TooltipTimerController(TooltipTimerController.Supplier factory,
int initialDelay,
int showDelay)
Creates a controller for the given tooltip supplier
|
Modifier and Type | Method and Description |
---|---|
void |
start(java.awt.event.MouseEvent evt)
Start the tooltip timer
|
void |
stop(java.awt.event.MouseEvent evt)
Stop the tooltip timers and hide the tooltip
|
void |
updateMouseEvent(java.awt.event.MouseEvent evt)
Updates the mouse event for this controller
|
public TooltipTimerController(TooltipTimerController.Supplier factory, int initialDelay, int showDelay)
factory
- initialDelay
- showDelay
- public void start(java.awt.event.MouseEvent evt)
evt
- Optional mouse event that will be passed to the supplierpublic void stop(java.awt.event.MouseEvent evt)
evt
- public void updateMouseEvent(java.awt.event.MouseEvent evt)
evt
-