public class GeometryListTransferhandler extends GeometryDestinationSourceTransferHandler
TransferHandler.DropLocation , TransferHandler.TransferSupport COPY, COPY_OR_MOVE, LINK, MOVE, NONE| Constructor and Description |
|---|
GeometryListTransferhandler(GeomList
|
| Modifier and Type | Method and Description |
|---|---|
void |
exportDone(JComponent
|
Collection |
getGeometries()
The method to implement to retrieve geometries for a source.
|
int |
getSourceActions(JComponent
|
void |
handle(Collection
Handle to insert the denoted geometries here.
|
void |
reorder(TransferHandler
Reorder action occurred due to drag'n'drop.
|
importDatacanImport, createTransferable, setDestinationHandler, setSourceHandlercanImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffsetpublic GeometryListTransferhandler(GeomListlist)
list - the list this handler is for.
public Collection<Geometry > getGeometries()
GeometrySource
public int getSourceActions(JComponentc)
public void handle(Collection<Geometry > geometries, TransferHandler .TransferSupport ts)
GeometryDestination
geometries - the geometries to handle.
ts - the TransferSupport instance involved.
public void reorder(TransferHandler.TransferSupport ts)
GeometryDestination
ts - the TransferSupport instance involved.
public void exportDone(JComponentc, Transferable t, int action)