SHARE
TWEET

Untitled

AishaAli Nov 19th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.   @(#)DuplicateCommand.java 5.2
  3.   */
  4.  
  5. package CH.ifa.draw.standard;
  6.  
  7. import java.util.*;
  8. import CH.ifa.draw.util.*;
  9. import CH.ifa.draw.framework.*;
  10.  
  11. public class DuplicateCommand extends FigureTransferCommand {
  12.  
  13.     public DuplicateCommand(String name, DrawingView view) {
  14.         super(name, view);
  15.     }
  16.  
  17.     public void execute() {
  18.         FigureSelection selection = fView.getFigureSelection();
  19.  
  20.         fView.clearSelection();
  21.  
  22.         Vector figures = (Vector)selection.getData(FigureSelection.TYPE);
  23.         insertFigures(figures, 10, 10);
  24.         fView.checkDamage();
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top