com.alee.managers.drag
Interface DragViewHandler<T>

All Known Implementing Classes:
DocumentDragViewHandler

public interface DragViewHandler<T>

Special interface that describes single object type drag representation.

Author:
Mikle Garin
See Also:
DragManager

Method Summary
 java.awt.datatransfer.DataFlavor getObjectFlavor()
          Returns object flavor that can be used to retrieve dragged object.
 java.awt.image.BufferedImage getView(T object)
          Returns image object representation.
 java.awt.Point getViewRelativeLocation(T object)
          Returns image object representation location relative to mouse location.
 

Method Detail

getObjectFlavor

java.awt.datatransfer.DataFlavor getObjectFlavor()
Returns object flavor that can be used to retrieve dragged object.

Returns:
object flavor that can be used to retrieve dragged object

getView

java.awt.image.BufferedImage getView(T object)
Returns image object representation.

Parameters:
object - object to create image representation for
Returns:
image object representation

getViewRelativeLocation

java.awt.Point getViewRelativeLocation(T object)
Returns image object representation location relative to mouse location.

Parameters:
object - object return image representation location for
Returns:
image object representation location relative to mouse location