Advertisement
AishaAli

Untitled

Nov 19th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. /*
  2. @(#)CopyCommand.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 CopyCommand extends FigureTransferCommand {
  12.  
  13. public CopyCommand(String name, DrawingView view) {
  14. super(name, view);
  15. }
  16.  
  17. public void execute() {
  18. copySelection();
  19. }
  20.  
  21. public boolean isExecutable() {
  22. return fView.selectionCount() > 0;
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement