public class PictureTransferHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
PictureTransferHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(JComponent c,
DataFlavor[] flavors) |
protected Transferable |
createTransferable(JComponent c) |
protected void |
exportDone(JComponent c,
Transferable data,
int action) |
int |
getSourceActions(JComponent c) |
boolean |
importData(JComponent c,
Transferable t) |
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
public boolean importData(JComponent c, Transferable t)
importData
in class TransferHandler
protected Transferable createTransferable(JComponent c)
createTransferable
in class TransferHandler
public int getSourceActions(JComponent c)
getSourceActions
in class TransferHandler
protected void exportDone(JComponent c, Transferable data, int action)
exportDone
in class TransferHandler
public boolean canImport(JComponent c, DataFlavor[] flavors)
canImport
in class TransferHandler
Copyright © 2014 Open Microscopy Environment