canImport
public boolean canImport(JComponent comp,
DataFlavor[] flavors)
createTransferable
protected Transferable createTransferable(JComponent c)
createTransferable
protected Transferable createTransferable(JGraph graph,
Object[] cells)
createTransferableForGraph
public Transferable createTransferableForGraph(JGraph graph)
exportDone
protected void exportDone(JComponent comp,
Transferable data,
int action)
getInsertionOffset
protected Point2D getInsertionOffset(JGraph graph,
int inCount,
Rectangle2D bounds)
Hook method to determine offset of cells cloned via the clipboard
graph
- the graph the insertion is occurring oninCount
- the number of time the insert has been appliedbounds
- the bounds of the transferred graph
- the offset from the cloned cell(s)
getSourceActions
public int getSourceActions(JComponent c)
handleExternalDrop
protected void handleExternalDrop(JGraph graph,
Object[] cells,
Map nested,
ConnectionSet cs,
ParentMap pm,
double dx,
double dy)
importData
public boolean importData(JComponent comp,
Transferable t)
importDataImpl
protected boolean importDataImpl(JComponent comp,
Transferable t)
isAlwaysReceiveAsCopyAction
public boolean isAlwaysReceiveAsCopyAction()
- Returns the alwaysReceiveAsCopyAction.
setAlwaysReceiveAsCopyAction
public void setAlwaysReceiveAsCopyAction(boolean alwaysReceiveAsCopyAction)
alwaysReceiveAsCopyAction
- The alwaysReceiveAsCopyAction to set.