API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DragSourceDragEvent View Source
Author(s)
Since
1.2
Version
1.31, 04/04/06
Serial
Hierarchy
 Object
      EventObject
          DragSourceEvent
              DragSourceDragEvent
Implements
Subclasses
Description
public class DragSourceDragEvent
  The DragSourceDragEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to the DragSourceListener registered with that DragSourceContext and with its associated DragSource.
See also:   
Constructors
public DragSourceDragEvent (DragSourceContext dsc, int dropAction, int action, int modifiers)
  Constructs a DragSourceDragEvent.
public DragSourceDragEvent (DragSourceContext dsc, int dropAction, int action, int modifiers, int x, int y)
  Constructs a DragSourceDragEvent given the specified DragSourceContext, user drop action, target drop action, modifiers and coordinates.
Methods
Hide/Show inherited methods
public DragSourceContext getDragSourceContext () [Inherited From DragSourceEvent]
  This method returns the DragSourceContext that originated the event.
public int getDropAction ()
  This method returns the logical intersection of the target drop action and the set of drop actions supported by the drag source.
public int getGestureModifiers ()
  This method returns an int representing the current state of the input device modifiers associated with the user's gesture.
public int getGestureModifiersEx ()
  This method returns an int representing the current state of the input device extended modifiers associated with the user's gesture.
public Point getLocation () [Inherited From DragSourceEvent]
  This method returns a Point indicating the cursor location in screen coordinates at the moment this event occured, or null if the cursor location is not specified for this event.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public int getTargetActions ()
  This method returns the target drop action.
public int getUserAction ()
  This method returns the user drop action.
public int getX () [Inherited From DragSourceEvent]
  This method returns the horizontal coordinate of the cursor location in screen coordinates at the moment this event occured, or zero if the cursor location is not specified for this event.
public int getY () [Inherited From DragSourceEvent]
  This method returns the vertical coordinate of the cursor location in screen coordinates at the moment this event occured, or zero if the cursor location is not specified for this event.
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