uk.ac.starlink.util.gui
Class DragListener

java.lang.Object
  extended byjavax.swing.event.MouseInputAdapter
      extended byuk.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.


Constructor Summary
DragListener()
           
 
Method Summary
 void mouseDragged(MouseEvent evt)
           
 void mouseEntered(MouseEvent evt)
           
 void mousePressed(MouseEvent evt)
           
 void mouseReleased(MouseEvent evt)
           
 
Methods inherited from class javax.swing.event.MouseInputAdapter
mouseClicked, mouseExited, mouseMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragListener

public DragListener()
Method Detail

mousePressed

public void mousePressed(MouseEvent evt)

mouseReleased

public void mouseReleased(MouseEvent evt)

mouseEntered

public void mouseEntered(MouseEvent evt)

mouseDragged

public void mouseDragged(MouseEvent evt)

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.