public abstract class MouseDragGestureRecognizer extends DragGestureRecognizer implements MouseListener, MouseMotionListener
component, dragGestureListener, dragSource, events, sourceActions| Modifier | Constructor and Description |
|---|---|
protected |
MouseDragGestureRecognizer(DragSource ds)
Creates a
MouseDragGestureRecognizer object. |
protected |
MouseDragGestureRecognizer(DragSource ds,
Component c)
Creates a
MouseDragGestureRecognizer object. |
protected |
MouseDragGestureRecognizer(DragSource ds,
Component c,
int act)
Creates a
MouseDragGestureRecognizer object. |
protected |
MouseDragGestureRecognizer(DragSource ds,
Component c,
int act,
DragGestureListener dgl)
Creates a
MouseDragGestureRecognizer object. |
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(MouseEvent e)
This method is called when the mouse is clicked (pressed and released
in short succession) on a component.
|
void |
mouseDragged(MouseEvent e)
This method is called when the mouse is moved over a component
while a button has been pressed.
|
void |
mouseEntered(MouseEvent e)
This method is called when the mouse enters a component.
|
void |
mouseExited(MouseEvent e)
This method is called when the mouse exits a component.
|
void |
mouseMoved(MouseEvent e)
This method is called when the mouse is moved over a component
while no button is pressed.
|
void |
mousePressed(MouseEvent e)
This method is called when the mouse is pressed over a component.
|
void |
mouseReleased(MouseEvent e)
This method is called when the mouse is released over a component.
|
protected void |
registerListeners() |
protected void |
unregisterListeners() |
addDragGestureListener, appendEvent, fireDragGestureRecognized, getComponent, getDragSource, getSourceActions, getTriggerEvent, removeDragGestureListener, resetRecognizer, setComponent, setSourceActionsprotected MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
MouseDragGestureRecognizer object.protected MouseDragGestureRecognizer(DragSource ds, Component c, int act)
MouseDragGestureRecognizer object.protected MouseDragGestureRecognizer(DragSource ds, Component c)
MouseDragGestureRecognizer object.protected MouseDragGestureRecognizer(DragSource ds)
MouseDragGestureRecognizer object.protected void registerListeners()
registerListeners in class DragGestureRecognizerprotected void unregisterListeners()
unregisterListeners in class DragGestureRecognizerpublic void mouseClicked(MouseEvent e)
MouseListenermouseClicked in interface MouseListenere - the MouseEvent indicating the clickpublic void mousePressed(MouseEvent e)
MouseListenermousePressed in interface MouseListenere - the MouseEvent for the presspublic void mouseReleased(MouseEvent e)
MouseListenermouseReleased in interface MouseListenere - the MouseEvent for the releasepublic void mouseEntered(MouseEvent e)
MouseListenermouseEntered in interface MouseListenere - the MouseEvent for the entrypublic void mouseExited(MouseEvent e)
MouseListenermouseExited in interface MouseListenere - the MouseEvent for the exitpublic void mouseDragged(MouseEvent e)
MouseMotionListenermouseDragged in interface MouseMotionListenere - the MouseEvent indicating the motionpublic void mouseMoved(MouseEvent e)
MouseMotionListenermouseMoved in interface MouseMotionListenere - the MouseEvent indicating the motion