public abstract class MouseTrackAdapter extends Object implements MouseTrackListener
MouseTrackListener
interface.
Classes that wish to deal with MouseEvent
s which
occur as the mouse pointer passes (or hovers) over controls can
extend this class and override only the methods which they are
interested in.
An alternative to this class are the static helper methods
MouseTrackListener.mouseEnterAdapter(java.util.function.Consumer)
,
MouseTrackListener.mouseExitAdapter(java.util.function.Consumer)
and
MouseTrackListener.mouseHoverAdapter(java.util.function.Consumer)
,
which accept a lambda expression or a method reference that implements the event consumer.
Constructor and Description |
---|
MouseTrackAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
mouseEnter(MouseEvent e)
Sent when the mouse pointer passes into the area of
the screen covered by a control.
|
void |
mouseExit(MouseEvent e)
Sent when the mouse pointer passes out of the area of
the screen covered by a control.
|
void |
mouseHover(MouseEvent e)
Sent when the mouse pointer hovers (that is, stops moving
for an (operating system specified) period of time) over
a control.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseEnterAdapter, mouseExitAdapter, mouseHoverAdapter
public void mouseEnter(MouseEvent e)
mouseEnter
in interface MouseTrackListener
e
- an event containing information about the mouse enterpublic void mouseExit(MouseEvent e)
mouseExit
in interface MouseTrackListener
e
- an event containing information about the mouse exitpublic void mouseHover(MouseEvent e)
mouseHover
in interface MouseTrackListener
e
- an event containing information about the hover
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.