public abstract class MouseMotionAdapter extends Object implements MouseMotionListener
MouseMotionListener and implements all
methods with empty bodies. This allows a listener interested in
implementing only a subset of the MouseMotionListener
interface to extend this class and override only the desired methods.MouseEvent,
MouseMotionListener| Constructor and Description |
|---|
MouseMotionAdapter()
Do nothing default constructor for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseDragged(MouseEvent event)
Implement this method in the interface with an empty body.
|
void |
mouseMoved(MouseEvent event)
Implement this method in the interface with an empty body.
|
public MouseMotionAdapter()
public void mouseDragged(MouseEvent event)
mouseDragged in interface MouseMotionListenerevent - the event, ignored in this implementationpublic void mouseMoved(MouseEvent event)
mouseMoved in interface MouseMotionListenerevent - the event, ignored in this implementation