org.openbp.jaspira.gui.interaction
Interface DragOrigin

All Known Implementing Classes:
DefaultPreviewPanel, ItemBrowserPlugin, NodeEditorItemBrowserPlugin, PluginPanel, TabbedPluginContainer, ToolBoxItem, VariablesPlugin

public interface DragOrigin

A drag origin is an object that may provide an object to drag.

Author:
Stephan Moritz

Method Summary
 boolean canDrag()
          If this returns false, no dragging is permitted.
 void dropAccepted(java.awt.datatransfer.Transferable t)
          Called when the drag has been accepted by a InteractionClient, but before it is actually imported.
 void dropCanceled(java.awt.datatransfer.Transferable t)
          Called when the drag action has been aborted, either by dropping upon a non- qualifying target or because the target reported an unsuccessful drop.
 void dropPerformed(java.awt.datatransfer.Transferable t)
          Called when the drop has been performed and the object has been inserted.
 MultiIcon getDragImage()
          Gets the image for the construction of the drag cursor.
 java.awt.datatransfer.Transferable getTranferableAt(java.awt.Point p)
          Returns the Transferable for a drag Operation starting at .
 

Method Detail

getTranferableAt

java.awt.datatransfer.Transferable getTranferableAt(java.awt.Point p)
Returns the Transferable for a drag Operation starting at .

Parameters:
p - The location at which the drag started in component local coordinates
Returns:
The Transferable to drag

dropAccepted

void dropAccepted(java.awt.datatransfer.Transferable t)
Called when the drag has been accepted by a InteractionClient, but before it is actually imported.

Parameters:
t - Dragged transferable

dropPerformed

void dropPerformed(java.awt.datatransfer.Transferable t)
Called when the drop has been performed and the object has been inserted.

Parameters:
t - Dragged transferable

dropCanceled

void dropCanceled(java.awt.datatransfer.Transferable t)
Called when the drag action has been aborted, either by dropping upon a non- qualifying target or because the target reported an unsuccessful drop.

Parameters:
t - Dragged transferable

canDrag

boolean canDrag()
If this returns false, no dragging is permitted.


getDragImage

MultiIcon getDragImage()
Gets the image for the construction of the drag cursor.

Returns:
The image or null if no special drag image is to be constructed


Copyright © 2011. All Rights Reserved.