T
- The type of the item being dropped.public interface IDropCreationCallback<T extends IModelItem>
Modifier and Type | Method and Description |
---|---|
T |
createItem(IInputModeContext context,
IGraph graph,
T draggedItem,
IModelItem dropTarget,
PointD dropLocation)
Callback for creating a copy of the dragged item in graph at the specified location.
|
T createItem(IInputModeContext context, IGraph graph, T draggedItem, IModelItem dropTarget, PointD dropLocation)
T
- The type of the item being dropped.context
- The context for which the item should be created.graph
- The Graph
in which to create the item.draggedItem
- The item that was dragged and should therefore be created.dropTarget
- The IModelItem
on which the item is dropped.dropLocation
- The location the item should be created.item
that has been created, or null
if no item should be created.