java.awt.dnd
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, setSourceActions
protected 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 DragGestureRecognizer
protected void unregisterListeners()
unregisterListeners
in class DragGestureRecognizer
public void mouseClicked(MouseEvent e)
MouseListener
mouseClicked
in interface MouseListener
e
- the MouseEvent
indicating the clickpublic void mousePressed(MouseEvent e)
MouseListener
mousePressed
in interface MouseListener
e
- the MouseEvent
for the presspublic void mouseReleased(MouseEvent e)
MouseListener
mouseReleased
in interface MouseListener
e
- the MouseEvent
for the releasepublic void mouseEntered(MouseEvent e)
MouseListener
mouseEntered
in interface MouseListener
e
- the MouseEvent
for the entrypublic void mouseExited(MouseEvent e)
MouseListener
mouseExited
in interface MouseListener
e
- the MouseEvent
for the exitpublic void mouseDragged(MouseEvent e)
MouseMotionListener
mouseDragged
in interface MouseMotionListener
e
- the MouseEvent
indicating the motionpublic void mouseMoved(MouseEvent e)
MouseMotionListener
mouseMoved
in interface MouseMotionListener
e
- the MouseEvent
indicating the motion