com.alee.managers.drag
Class DragManager

java.lang.Object
  extended by com.alee.managers.drag.DragManager

public final class DragManager
extends java.lang.Object

This manager simplifies dragged items visual representation creation. You can add customized representation support for DataFlavor by registering new DragViewHandler. So far custom DataFlavor view will be displayed only within application window bounds.

Author:
Mikle Garin

Constructor Summary
DragManager()
           
 
Method Summary
static void initialize()
          Initializes manager if it wasn't already initialized.
static void registerViewHandler(DragViewHandler dragViewHandler)
          Registers new DragViewHandler.
static void unregisterViewHandler(DragViewHandler dragViewHandler)
          Unregisters new DragViewHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragManager

public DragManager()
Method Detail

initialize

public static void initialize()
Initializes manager if it wasn't already initialized.


registerViewHandler

public static void registerViewHandler(DragViewHandler dragViewHandler)
Registers new DragViewHandler.

Parameters:
dragViewHandler - DragViewHandler to register

unregisterViewHandler

public static void unregisterViewHandler(DragViewHandler dragViewHandler)
Unregisters new DragViewHandler.

Parameters:
dragViewHandler - DragViewHandler to unregister