org.jhotdraw.draw
Class DnDDrawingViewTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by org.jhotdraw.draw.DefaultDrawingViewTransferHandler
          extended by org.jhotdraw.draw.DnDDrawingViewTransferHandler
All Implemented Interfaces:
java.io.Serializable

public class DnDDrawingViewTransferHandler
extends DefaultDrawingViewTransferHandler

A TransferHandler for DrawingView objects which takes advantage of drag and drop features that were introduced with J2SE 6.

Note: This class requires J2SE 6. If you need backwards compatibility with J2SE 5 available, you may want to use class DefaultDrawingViewTransferHandler instead.

Version:
$Id: DnDDrawingViewTransferHandler.java 575 2009-10-18 11:26:50Z rawcoder $
Author:
Werner Randelshofer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
private static boolean DEBUG
           
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
DnDDrawingViewTransferHandler()
          Creates a new instance.
 
Method Summary
 boolean importData(javax.swing.TransferHandler.TransferSupport support)
           
 
Methods inherited from class org.jhotdraw.draw.DefaultDrawingViewTransferHandler
canImport, createTransferable, createTransferable, exportAsDrag, exportDone, getSourceActions, getVisualRepresentation, importData, importData, moveToDropPoint
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportToClipboard, getCopyAction, getCutAction, getPasteAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

DnDDrawingViewTransferHandler

public DnDDrawingViewTransferHandler()
Creates a new instance.

Method Detail

importData

public boolean importData(javax.swing.TransferHandler.TransferSupport support)
Overrides:
importData in class javax.swing.TransferHandler