public class DragLayerEvent extends EventObject
DragLayer.DragLayer.addDragLayerListener(IDragLayerListener),
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
DragLayerEvent.ID
An enumerator with different identifiers that can be used to distinguish
between different types of events.
|
source| Constructor and Description |
|---|
DragLayerEvent(DragLayer layer,
DragLayerEvent.ID id,
ObjectBounds draggedObjectBounds,
ITimeSpan span,
int dropAction)
Constructs a new event object.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectBounds |
getDraggedObjectBounds()
Returns the bounds of the object that is being dragged around (or
resized) by the user.
|
DragLayer |
getDragLayer()
Returns the drag layer where the drag operation takes place.
|
int |
getDropAction()
Returns the drop action as requested by the user (copy, move).
|
DragLayerEvent.ID |
getId()
Returns the event ID.
|
ITimeSpan |
getTimeSpan()
Returns the time span to which the dragged object has been moved (or
resized) by the user.
|
getSource, toStringpublic DragLayerEvent(DragLayer layer, DragLayerEvent.ID id, ObjectBounds draggedObjectBounds, ITimeSpan span, int dropAction)
layer - the drag layer where the event occuredid - the type of eventdraggedObjectBounds - the object that is being draggedspan - the time span that will be applied to the dragged objectdropAction - the drop action specified by the user: copy or move (possible
values are listed in DnDConstants)public DragLayerEvent.ID getId()
public DragLayer getDragLayer()
public ITimeSpan getTimeSpan()
public ObjectBounds getDraggedObjectBounds()
public int getDropAction()
DnDConstants.Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.