Example usage for java.awt.dnd DragGestureEvent iterator

List of usage examples for java.awt.dnd DragGestureEvent iterator

Introduction

In this page you can find the example usage for java.awt.dnd DragGestureEvent iterator.

Prototype

@SuppressWarnings("unchecked")
public Iterator<InputEvent> iterator() 

Source Link

Document

Returns an Iterator for the events comprising the gesture.

Usage

From source file:JLabelDragSource.java

public void dragGestureRecognized(DragGestureEvent dge) {
    if (DnDUtils.isDebugEnabled()) {
        DnDUtils.debugPrintln("Initiating event is " + dge.getTriggerEvent());
        DnDUtils.debugPrintln("Complete event set is:");
        Iterator iter = dge.iterator();
        while (iter.hasNext()) {
            DnDUtils.debugPrintln("\t" + iter.next());
        }/* ww w  . j a  v a2 s.  co m*/
    }
    Transferable transferable = new JLabelTransferable(label);
    dge.startDrag(null, transferable, this);
}