org.xith3d.ui.swingui
Interface UIDragDropInterface

All Known Implementing Classes:
UIWindow

public interface UIDragDropInterface

Insert package comments here Originally Coded by David Yazel on Oct 4, 2003 at 11:55:20 PM.


Method Summary
 boolean dragging(java.awt.event.MouseEvent mouseEvent, UIDraggingInformation info)
          Once a legitimate dragging operation is started then windows which implement this interface will get this callback as the icon is moved over their surface.
 boolean dropped(java.awt.event.MouseEvent mouseEvent, UIDraggingInformation info)
          When the mouse is released the dragging operation will stop.
 UIDraggingInformation startDrag(java.awt.event.MouseEvent mouseEvent)
          Called when the overlay manager starts a drag action.
 

Method Detail

startDrag

UIDraggingInformation startDrag(java.awt.event.MouseEvent mouseEvent)
Called when the overlay manager starts a drag action. If null is returned then the dragging action is cancelled. otherwise the icon specified in the DraggingInformation will be moved around the screen until the mouse is released.

Parameters:
mouseEvent -
Returns:
the UIDraggingInformation

dragging

boolean dragging(java.awt.event.MouseEvent mouseEvent,
                 UIDraggingInformation info)
Once a legitimate dragging operation is started then windows which implement this interface will get this callback as the icon is moved over their surface.

Parameters:
mouseEvent -
info -

dropped

boolean dropped(java.awt.event.MouseEvent mouseEvent,
                UIDraggingInformation info)
When the mouse is released the dragging operation will stop. If there is a window or an object underneath the mouse and it implements this interface then this method will be called. Returning false means that the target is rejecting the drop.

Parameters:
mouseEvent -
info -