站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WidgetAction.WidgetDropTargetDragEvent (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Class WidgetAction.WidgetDropTargetDragEvent

java.lang.Object
  extended by 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
WidgetAction.WidgetDropTargetDragEvent(long id, DropTargetDragEvent event)
          Creates a drop target drag event.
 
Method Summary
 void acceptDrag(int dragOperation)
           
 DataFlavor[] getCurrentDataFlavors()
           
 List<DataFlavor> getCurrentDataFlavorsAsList()
           
 int getDropAction()
           
 DropTargetContext getDropTargetContext()
           
 long getEventID()
          Returns an event id.
 Point getPoint()
          Returns stored location.
 int getSourceActions()
           
 Transferable getTransferable()
           
 boolean isDataFlavorSupported(DataFlavor df)
           
 void rejectDrag()
           
 void setPoint(Point point)
          Sets a new location.
 void translatePoint(int x, int y)
          Translates the stored location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetAction.WidgetDropTargetDragEvent

public WidgetAction.WidgetDropTargetDragEvent(long id,
                                              DropTargetDragEvent event)
Creates a drop target drag event.

Parameters:
id - the event id
event - the Swing event
Method Detail

getEventID

public long getEventID()
Returns an event id.

Specified by:
getEventID in interface WidgetAction.WidgetEvent
Returns:
the event id

getPoint

public Point getPoint()
Returns stored location.

Specified by:
getPoint in interface WidgetAction.WidgetLocationEvent
Returns:
the location

setPoint

public void setPoint(Point point)
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 interface WidgetAction.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 interface WidgetAction.WidgetLocationEvent
Parameters:
x - the x-axis addition
y - the y-axis addition

getCurrentDataFlavors

public DataFlavor[] getCurrentDataFlavors()
See Also:
DropTargetDragEvent

getCurrentDataFlavorsAsList

public List<DataFlavor> getCurrentDataFlavorsAsList()
See Also:
DropTargetDragEvent

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor df)
See Also:
DropTargetDragEvent

getSourceActions

public int getSourceActions()
See Also:
DropTargetDragEvent

getDropAction

public int getDropAction()
See Also:
DropTargetDragEvent

getTransferable

public Transferable getTransferable()
See Also:
DropTargetDragEvent

getDropTargetContext

public DropTargetContext getDropTargetContext()
See Also:
DropTargetDragEvent

acceptDrag

public void acceptDrag(int dragOperation)
See Also:
DropTargetDragEvent

rejectDrag

public void rejectDrag()
See Also:
DropTargetDragEvent

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.