API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DragGestureEvent View Source
Author(s)
Since
Version
1.24
Serial
Hierarchy
 Object
      EventObject
          DragGestureEvent
Implements
Subclasses
Description
public class DragGestureEvent
  A DragGestureEvent is passed to DragGestureListener's dragGestureRecognized() method when a particular DragGestureRecognizer detects that a platform dependent drag initiating gesture has occurred on the Component that it is tracking.
Constructors
public DragGestureEvent (DragGestureRecognizer dgr, int act, Point ori, List<InputEvent> evs)
  Construct a DragGestureEvent given the DragGestureRecognizer firing this event, an int representing the user's preferred action, a Point indicating the origin of the drag, and a List of events that comprise the gesture.
Methods
Hide/Show inherited methods
public Component getComponent ()
  Returns the Component associated with this DragGestureEvent.
public int getDragAction ()
  Returns an int representing the action selected by the user.
public Point getDragOrigin ()
  Returns a Point in the coordinates of the Component over which the drag originated.
public DragSource getDragSource ()
  Returns the DragSource.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public DragGestureRecognizer getSourceAsDragGestureRecognizer ()
  Returns the source as a DragGestureRecognizer.
public InputEvent getTriggerEvent ()
  Returns the initial event that triggered the gesture.
public Iterator<InputEvent> iterator ()
  Returns an Iterator for the events comprising the gesture.
public void startDrag (Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl) throws InvalidDnDOperationException
  Start the drag given the initial Cursor to display, a drag Image, the offset of the Image, the Transferable object, and the DragSourceListener to use.
public void startDrag (Cursor dragCursor, Transferable transferable) throws InvalidDnDOperationException
  Starts the drag operation given the Cursor for this drag operation and the Transferable representing the source data for this drag operation.
public void startDrag (Cursor dragCursor, Transferable transferable, DragSourceListener dsl) throws InvalidDnDOperationException
  Starts the drag given the initial Cursor to display, the Transferable object, and the DragSourceListener to use.
public Object toArray ()
  Returns an Object array of the events comprising the drag gesture.
public Object toArray (Object array)
  Returns an array of the events comprising the drag gesture.
public String toString () [Inherited From EventObject]
  Returns a String representation of this EventObject.
Fields
Hide/Show inherited fields
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar