Class DragListener
java.lang.Object
java.awt.event.MouseAdapter
javax.swing.event.MouseInputAdapter
uk.ac.starlink.util.gui.DragListener
- All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener, MouseInputListener
Mouse listener object which watches for a drag gesture, and invokes
TransferHandler.exportAsDrag() when it sees one.
Note this must be installed as
both a
MouseListener
and a MouseMotionListener
on the component it's watching.- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmouseDragged(MouseEvent evt) voidmouseEntered(MouseEvent evt) voidmousePressed(MouseEvent evt) voidmouseReleased(MouseEvent evt) Methods inherited from class MouseAdapter
mouseClicked, mouseExited, mouseMoved, mouseWheelMovedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MouseListener
mouseClicked, mouseExitedMethods inherited from interface MouseMotionListener
mouseMoved
-
Constructor Details
-
DragListener
public DragListener()
-
-
Method Details
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classMouseAdapter
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classMouseAdapter
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener- Overrides:
mouseEnteredin classMouseAdapter
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classMouseAdapter
-