public class BioDropHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
BioDropHandler(VisBioFrame bio)
Constructs a new transfer handler for VisBio file drops.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(JComponent comp,
DataFlavor[] flavors)
Determines whether a drop operation is legal with the given flavors.
|
boolean |
importData(JComponent comp,
Transferable t)
Performs a drop operation with the given transferable component.
|
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, setDragImage, setDragImageOffset
public BioDropHandler(VisBioFrame bio)
public boolean canImport(JComponent comp, DataFlavor[] flavors)
canImport
in class TransferHandler
public boolean importData(JComponent comp, Transferable t)
importData
in class TransferHandler
Copyright © 2015–2022 SciJava. All rights reserved.