buoy.event
Class ToolTipEvent
- WidgetEvent
public class ToolTipEvent
extends EventObject
This event indicates that the user has performed the series of actions which signal that a
tool tip should be displayed. Generally, this involves placing the mouse pointer over a Widget and
not moving it for a certain amount of time.
For more information on how to display tool tips, see the
BToolTip
class.
Point | getPoint() - Get the position of the mouse pointer.
|
Point | getToolTipLocation() - Get the suggested position at which the tool tip should be displayed.
|
long | getWhen() - Get the time at which the event occurred.
|
Widget | getWidget() - Get the Widget which generated this event.
|
ToolTipEvent
public ToolTipEvent(Widget source,
long when,
Point pos,
Point tipPos)
Create a ToolTipEvent.
source
- the Widget which generated this eventwhen
- the time at which the event occurredpos
- the position of the mouse pointertipPos
- the position at which the tool tip should be displayed
getPoint
public Point getPoint()
Get the position of the mouse pointer.
getToolTipLocation
public Point getToolTipLocation()
Get the suggested position at which the tool tip should be displayed.
getWhen
public long getWhen()
Get the time at which the event occurred.
Written by Peter Eastman.