Class WidgetAction.WidgetDropTargetDragEvent
java.lang.Object
org.netbeans.api.visual.action.WidgetAction.WidgetDropTargetDragEvent
- All Implemented Interfaces:
WidgetAction.WidgetEvent
,WidgetAction.WidgetLocationEvent
- Enclosing interface:
WidgetAction
public static final class WidgetAction.WidgetDropTargetDragEvent
extends Object
implements WidgetAction.WidgetLocationEvent
Represents a drop target drag event.
-
Constructor Summary
ConstructorsConstructorDescriptionWidgetDropTargetDragEvent
(long id, DropTargetDragEvent event) Creates a drop target drag event. -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptDrag
(int dragOperation) int
long
Returns an event id.getPoint()
Returns stored location.int
boolean
void
void
Sets a new location.void
translatePoint
(int x, int y) Translates the stored location.
-
Constructor Details
-
WidgetDropTargetDragEvent
Creates a drop target drag event.- Parameters:
id
- the event idevent
- the Swing event
-
-
Method Details
-
getEventID
public long getEventID()Returns an event id.- Specified by:
getEventID
in interfaceWidgetAction.WidgetEvent
- Returns:
- the event id
-
getPoint
Returns stored location.- Specified by:
getPoint
in interfaceWidgetAction.WidgetLocationEvent
- Returns:
- the location
-
setPoint
Sets a new location. This is called by a event provider only. Do not call this method unless you know what it does exactly.- Specified by:
setPoint
in interfaceWidgetAction.WidgetLocationEvent
- Parameters:
point
- the new location
-
translatePoint
public void translatePoint(int x, int y) Translates the stored location. Do not call this method unless you know what it does exactly.- Specified by:
translatePoint
in interfaceWidgetAction.WidgetLocationEvent
- Parameters:
x
- the x-axis additiony
- the y-axis addition
-
getCurrentDataFlavors
- See Also:
-
getCurrentDataFlavorsAsList
- See Also:
-
isDataFlavorSupported
- See Also:
-
getSourceActions
public int getSourceActions()- See Also:
-
getDropAction
public int getDropAction()- See Also:
-
getTransferable
- See Also:
-
getDropTargetContext
- See Also:
-
acceptDrag
public void acceptDrag(int dragOperation) - See Also:
-
rejectDrag
public void rejectDrag()- See Also:
-