Vispatch Tutorial (using Java 1.02) > TOC > Applet Editing Features > Copy and Paste

Copy and Paste

The applet's drawing editor supports supports copy and paste when in select mode.  To copy the selected objects, hold down the control key and press "c".  To paste, hold down the control key and press "v".  Cut is also supported with control-"x".

The paste command has some flexible features:

  1. If the user has just issued pressed control-"c", the pasted figures will be in the exact location as the originals.
  2. Clicking the mouse somewhere on the document will make the next paste command put the new figures at that location.
  3. Dragging a selection rectangle somewhere on the document will make the next paste command resize the figures to fit inside the selection rectangle.

(Note: the Java 1.02 applet below does not have the editing features required for this demonstration.)
 
Although undo is not yet supported, just pasted figures are automatically selection.  Therefore a press of the delete key can "undo" a paste.

Multiple instances of the applet on separate web pages share the same copy clipboard, so it is possible to copy and paste between Vispatch applets.