org.jgraph.graph
public class GraphTransferHandler extends TransferHandler
| Field Summary | |
|---|---|
| protected boolean | alwaysReceiveAsCopyAction
Controls if all inserts should be handled as external drops even if all
cells are already in the graph model. |
| protected Object | in |
| protected int | inCount |
| protected Object | out |
| Method Summary | |
|---|---|
| boolean | canImport(JComponent comp, DataFlavor[] flavors) |
| protected GraphTransferable | create(JGraph graph, Object[] cells, Map viewAttributes, Rectangle2D bounds, ConnectionSet cs, ParentMap pm) |
| protected Transferable | createTransferable(JComponent c) |
| protected Transferable | createTransferable(JGraph graph, Object[] cells) |
| Transferable | createTransferableForGraph(JGraph graph) |
| protected void | exportDone(JComponent comp, Transferable data, int action) |
| protected Point2D | getInsertionOffset(JGraph graph, int inCount, Rectangle2D bounds)
Hook method to determine offset of cells cloned via the clipboard |
| int | getSourceActions(JComponent c) |
| protected void | handleExternalDrop(JGraph graph, Object[] cells, Map nested, ConnectionSet cs, ParentMap pm, double dx, double dy) |
| boolean | importData(JComponent comp, Transferable t) |
| protected boolean | importDataImpl(JComponent comp, Transferable t) |
| boolean | isAlwaysReceiveAsCopyAction() |
| void | setAlwaysReceiveAsCopyAction(boolean alwaysReceiveAsCopyAction) |
Parameters: graph the graph the insertion is occurring on inCount the number of time the insert has been applied bounds the bounds of the transferred graph
Returns: the offset from the cloned cell(s)
Returns: Returns the alwaysReceiveAsCopyAction.
Parameters: alwaysReceiveAsCopyAction The alwaysReceiveAsCopyAction to set.