Defines the step size to offset the cells after each paste operation. Default is 10.
Holds the array of mxCell currently in the clipboard.
Counts the number of times the clipboard data has been inserted.
Cuts the given array of mxCell from the specified graph. If cells is null then the selection cells of the graph will be used. Returns the cells that have been cut from the graph.
mxGraph that contains the cells to be cut.
Optional array of mxCell to be cut.
Returns the cells in the clipboard.
Returns true if the clipboard currently has not data stored.
Pastes the cells into the specified graph restoring the relation to {@link parents}, if possible. If the parents are no longer in the graph or invisible then the cells are added to the graph's default or into the swimlane under the cell's new location if one exists. The cells are added to the graph using mxGraph.importCells and returned.
Sets the cells in the clipboard. Fires a mxEvent.CHANGE event.
Generated using TypeDoc
This copies the selection cells from the graph to the clipboard and pastes them into graph2.
For fine-grained control of the clipboard data the mxGraph.canExportCell and mxGraph.canImportCell functions can be overridden.
To restore previous parents for pasted cells, the implementation for copy and paste can be changed as follows.