| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.util.EventObject | +--java.awt.dnd.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.
| Fields inherited from class java.util.EventObject | 
| source | 
| Constructor Summary | |
| DragGestureEvent(DragGestureRecognizer dgr,
                 int act,
                 Point ori,
                 List evs)Construct a DragGestureEventgiven theDragGestureRecognizerfiring this event, 
 anintrepresenting
 the user's preferred action, aPointindicating the origin of the drag, and aListof events that comprise the gesture. | |
| Method Summary | |
|  Component | getComponent()This method returns the Componentassociated 
 with thisDragGestureEvent. | 
|  int | getDragAction()This method returns an intrepresenting the 
 action selected by the user. | 
|  Point | getDragOrigin()This method returns a Pointin the coordinates
 of theComponentover which the drag originated. | 
|  DragSource | getDragSource()This method returns the DragSource. | 
|  DragGestureRecognizer | getSourceAsDragGestureRecognizer()This method returns the source as a DragGestureRecognizer. | 
|  InputEvent | getTriggerEvent()This method returns the initial event that triggered the gesture. | 
|  Iterator | iterator()This method returns an Iteratorfor the events
 comprising the gesture. | 
|  void | startDrag(Cursor dragCursor,
          Image dragImage,
          Point imageOffset,
          Transferable transferable,
          DragSourceListener dsl)Start the drag given the initial Cursorto display,
 a dragImage, the offset of 
 theImage, 
 theTransferableobject, and 
 theDragSourceListenerto use. | 
|  void | startDrag(Cursor dragCursor,
          Transferable transferable,
          DragSourceListener dsl)Start the drag given the initial Cursorto display, 
 theTransferableobject, 
 and theDragSourceListenerto use. | 
|  Object[] | toArray()This method returns an Objectarray of the 
 events comprising the drag gesture. | 
|  Object[] | toArray(Object[] array)This method returns an array of the events comprising the drag gesture. | 
| Methods inherited from class java.util.EventObject | 
| getSource, toString | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public DragGestureEvent(DragGestureRecognizer dgr, int act, Point ori, List evs)
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.
 dgr - The DragGestureRecognizer firing this eventact - The the user's preferred actionori - The origin of the dragevs - The List of events that comprise the gesture
 IllegalArgumentException| Method Detail | 
public DragGestureRecognizer getSourceAsDragGestureRecognizer()
DragGestureRecognizer.
 DragGestureRecognizerpublic Component getComponent()
Component associated 
 with this DragGestureEvent.
 public DragSource getDragSource()
DragSource.
 DragSourcepublic Point getDragOrigin()
Point in the coordinates
 of the Component over which the drag originated.
 public Iterator iterator()
Iterator for the events
 comprising the gesture.
 public Object[] toArray()
Object array of the 
 events comprising the drag gesture.
 public Object[] toArray(Object[] array)
array - the array of EventObject sub(types)
 public int getDragAction()
int representing the 
 action selected by the user.
 public InputEvent getTriggerEvent()
public void startDrag(Cursor dragCursor, Transferable transferable, DragSourceListener dsl) throws InvalidDnDOperationException
Cursor to display, 
 the Transferable object, 
 and the DragSourceListener to use.
 dragCursor - The initial drag Cursortransferable - The source's Transferabledsl - The source's DragSourceListener
 InvalidDnDOperationExceptionpublic void startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl) throws InvalidDnDOperationException
Cursor to display,
 a drag Image, the offset of 
 the Image, 
 the Transferable object, and 
 the DragSourceListener to use.
 dragCursor - The initial drag CursordragImage - The source's dragImageimageOffset - The dragImage's offsettransferable - The source's Transferabledsl - The source's DragSourceListener
 InvalidDnDOperationException| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A.  All Rights Reserved.