Sweet Home 3D 4.1

com.eteks.sweethome3d.swing
Class VisualTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.eteks.sweethome3d.swing.VisualTransferHandler
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FurnitureCatalogTransferHandler

public class VisualTransferHandler
extends TransferHandler

Transfer handler with visual representation on systems that support it.

Author:
Emmanuel Puybaret
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
 
Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
VisualTransferHandler()
           
 
Method Summary
 void exportAsDrag(JComponent source, InputEvent ev, int action)
          Causes the Swing drag support to be initiated with a drag icon if necessary.
 
Methods inherited from class javax.swing.TransferHandler
canImport, canImport, createTransferable, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualTransferHandler

public VisualTransferHandler()
Method Detail

exportAsDrag

public void exportAsDrag(JComponent source,
                         InputEvent ev,
                         int action)
Causes the Swing drag support to be initiated with a drag icon if necessary. This method implements the expected behavior of exportAsDrag if getVisualRepresentation was used in TransferHandler implementation. As only Mac OS X supports drag image, the drag icon will actually appear only on this system.

Overrides:
exportAsDrag in class TransferHandler

Sweet Home 3D 4.1

© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License