uk.ac.starlink.util.gui
Class DragListener
java.lang.Object
javax.swing.event.MouseInputAdapter
uk.ac.starlink.util.gui.DragListener
- All Implemented Interfaces:
- EventListener, MouseInputListener, MouseListener, MouseMotionListener
- public class DragListener
- extends MouseInputAdapter
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragListener
public DragListener()
mousePressed
public void mousePressed(MouseEvent evt)
mouseReleased
public void mouseReleased(MouseEvent evt)
mouseEntered
public void mouseEntered(MouseEvent evt)
mouseDragged
public void mouseDragged(MouseEvent evt)