Back to index

moin  1.9.0~rc2
CopyCommand.java
Go to the documentation of this file.
00001 /*
00002  * @(#)CopyCommand.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.standard;
00007 
00008 import java.util.*;
00009 import CH.ifa.draw.util.*;
00010 import CH.ifa.draw.framework.*;
00011 
00016 public class CopyCommand extends FigureTransferCommand {
00017 
00023     public CopyCommand(String name, DrawingView view) {
00024         super(name, view);
00025     }
00026 
00027     public void execute() {
00028         copySelection();
00029     }
00030 
00031     public boolean isExecutable() {
00032         return fView.selectionCount() > 0;
00033     }
00034 
00035 }
00036 
00037