API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DragSourceEvent View Source
Author(s)
Since
1.2
Version
Serial
Hierarchy
 Object
      EventObject
          DragSourceEvent
Implements
Subclasses
Description
public class DragSourceEvent
  This class is the base class for DragSourceDragEvent and DragSourceDropEvent.
See also:   
Constructors
public DragSourceEvent (DragSourceContext dsc)
  Construct a DragSourceEvent given a specified DragSourceContext.
public DragSourceEvent (DragSourceContext dsc, int x, int y)
  Construct a DragSourceEvent given a specified DragSourceContext, and coordinates of the cursor location.
Methods
Hide/Show inherited methods
public DragSourceContext getDragSourceContext ()
  This method returns the DragSourceContext that originated the event.
public Point getLocation ()
  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 getX ()
  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 ()
  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