Package com.nomagic.magicdraw.ui.dnd
Class DroppedData
- java.lang.Object
-
- com.nomagic.magicdraw.ui.dnd.DroppedData
-
@OpenApiAll public class DroppedData extends java.lang.Object
Wraps essential info fromTransferHandler.TransferSupport
to make it accessible after drop is complete
-
-
Constructor Summary
Constructors Constructor Description DroppedData(java.lang.Object transferredData, int dropAction, java.awt.Point dropPoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDropAction()
java.awt.Point
getDropPoint()
java.lang.Object
getTransferredData()
-
-
-
Constructor Detail
-
DroppedData
public DroppedData(java.lang.Object transferredData, int dropAction, java.awt.Point dropPoint)
- Parameters:
transferredData
- data extracted fromTransferHandler.TransferSupport
dropAction
- one of transfer handler actionsdropPoint
- point on screen where the drag finished and was dropped
-
-
Method Detail
-
getTransferredData
public java.lang.Object getTransferredData()
- Returns:
- data extracted from
TransferHandler.TransferSupport
-
getDropPoint
public java.awt.Point getDropPoint()
- Returns:
- point on screen where the drag finished and was dropped
-
getDropAction
public int getDropAction()
- Returns:
- one of transfer handler actions
TransferHandler.NONE
TransferHandler.LINK
TransferHandler.MOVE
TransferHandler.COPY
TransferHandler.COPY_OR_MOVE
-
-