Class DragListener

java.lang.Object
java.awt.event.MouseAdapter
net.sf.colossus.gui.DragListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener

public class DragListener extends MouseAdapter implements MouseMotionListener
This listener can be used to make a Component draggable. If subscribed as MouseListener and MouseMotionListener, the component this listener subscribes to will become draggable by mouse. This subscription is done by the static method #makeDraggable(Component) to make sure it is done the right way.