class ToolTip.TooltipWorker
extends java.util.Timer
Modifier and Type | Field and Description |
---|---|
private boolean |
cancelled
Flags an aborted state.
|
private boolean |
displayed
true if the tooltip is visible and need to be erased. |
private int |
fnt
The font used to display the tooltip.
|
private AbstractWidget |
owner
The widget that owns the tooltip.
|
private NativeRectangle |
rect |
Constructor and Description |
---|
TooltipWorker(AbstractWidget<?> owner,
java.lang.String toolTip,
NativeRectangle rect,
int fnt)
Creates a new object and schedule tasks for show and hide events for the tooltip.
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Terminates this timer, discarding any currently scheduled tasks.
|
private void |
clear()
Clears the area occupied by tooltip by posting a refresh event for respective rectangle.
|
private volatile boolean cancelled
true
, the tooltip will not be shown any more.private volatile boolean displayed
true
if the tooltip is visible and need to be erased.private final AbstractWidget owner
private final NativeRectangle rect
private final int fnt
TooltipWorker(AbstractWidget<?> owner, java.lang.String toolTip, NativeRectangle rect, int fnt)
owner
- The widget that owns the tooltip.toolTip
- The text to be displayed.rect
- The surface occupied by tooltip, in native points.fnt
- The font used to display the tooltip.private void clear()
public void cancel()
This method may be called repeatedly; the second and subsequent calls have no effect.
cancel
in class java.util.Timer