Class DragInitiatorListener

java.lang.Object
java.awt.event.MouseAdapter
com.inductiveautomation.ignition.designer.gui.DragInitiatorListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class DragInitiatorListener extends MouseAdapter implements MouseMotionListener
This MouseListener and MouseMotionListener listens to a JComponent, and initiates an exportAsDrag on its TransferHandler when a drag exceeds 5 pixels of distance in any direction.

To use, call DragInitiatorListener.install(JComponent). Note that this installs a shared lisener for all components.