|
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.AWTEvent | +--java.awt.event.ComponentEvent | +--java.awt.event.InputEvent | +--java.awt.event.MouseEvent | +--com.apple.mrj.dnd.DragInitiatorEvent
An event sent to a registered DragInitiatorListener when the user begins a dragging gesture (i.e. after the mouse has been pressed and moved 4 pixels) and after a drag-n-drop operation initiated by such a gesture completes.
DragInitiatorListener
, Serialized FormField Summary | |
static int |
DRAG_COMPLETED
Deprecated. |
static int |
DRAG_FAILED
Deprecated. |
static int |
DRAG_GESTURE
Deprecated. |
static int |
DRAG_INITIATOR_FIRST
Deprecated. |
static int |
DRAG_INITIATOR_LAST
Deprecated. |
Fields inherited from class java.awt.event.MouseEvent |
MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED |
Fields inherited from class java.awt.event.InputEvent |
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK |
Fields inherited from class java.awt.event.ComponentEvent |
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
DragInitiatorEvent(Component source,
int id,
long when,
int modifiers,
int x,
int y,
OutgoingDrag drag)
Deprecated. |
Method Summary | |
OutgoingDrag |
getDrag()
Deprecated. Returns the OutgoingDrag to be used in a drag-n-drop operation. |
Image |
getDragImage()
Deprecated. Returns the Image that should be used for visual feedback during drag tracking, or null if there is none. |
Point |
getDragImageOffset()
Deprecated. Returns the offset of the image in component coordinates, or null if there is no image. |
Shape |
getDragShape()
Deprecated. Returns the shape of the outline that will be visually dragged. |
boolean |
isDragInitiated()
Deprecated. Returns true if an OutgoingDrag has been initiated. |
String |
paramString()
Deprecated. Returns a parameter string identifying this event. |
void |
setDragImage(Image image,
int x,
int y)
Deprecated. Sets the image that should be used for visual feedback during drag tracking, and the point in the Component's coordinate system at which the top left corner of the image originally appears. |
void |
setDragRect(int x,
int y,
int width,
int height)
Deprecated. Sets the bounds of the rectangular outline that will be visually dragged. |
void |
setDragShape(Shape s)
Deprecated. Sets the shape of the outline that will be visually dragged. |
Methods inherited from class java.awt.event.MouseEvent |
getClickCount, getPoint, getX, getY, isPopupTrigger, translatePoint |
Methods inherited from class java.awt.event.InputEvent |
consume, getModifiers, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown |
Methods inherited from class java.awt.event.ComponentEvent |
getComponent |
Methods inherited from class java.awt.AWTEvent |
getID, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int DRAG_INITIATOR_FIRST
public static final int DRAG_INITIATOR_LAST
public static final int DRAG_GESTURE
public static final int DRAG_COMPLETED
public static final int DRAG_FAILED
Constructor Detail |
public DragInitiatorEvent(Component source, int id, long when, int modifiers, int x, int y, OutgoingDrag drag)
Method Detail |
public OutgoingDrag getDrag()
public boolean isDragInitiated()
public Shape getDragShape()
public void setDragShape(Shape s)
null
will return it to this default.public void setDragRect(int x, int y, int width, int height)
public Image getDragImage()
public Point getDragImageOffset()
public void setDragImage(Image image, int x, int y)
public String paramString()
MouseEvent
paramString
in class MouseEvent
java.awt.event.MouseEvent
|
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.