com.eteks.sweethome3d.swing
Class VisualTransferHandler
java.lang.Object
javax.swing.TransferHandler
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
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 |
VisualTransferHandler
public VisualTransferHandler()
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