CH.ifa.draw.standard
Class DuplicateCommand
- java.lang.Object
-
- CH.ifa.draw.util.Command
-
- CH.ifa.draw.standard.DuplicateCommand
-
- Direct Known Subclasses:
- JooneDuplicateCommand
public class DuplicateCommand extends Command
Duplicate the selection and select the duplicates.
-
-
Constructor Summary
Constructors Constructor and Description DuplicateCommand(java.lang.String name, DrawingView view)Constructs a duplicate command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute()Executes the command.booleanisExecutable()Tests if the command can be executed.
-
-
-
Constructor Detail
-
DuplicateCommand
public DuplicateCommand(java.lang.String name, DrawingView view)Constructs a duplicate command.- Parameters:
name- the command nameview- the target view
-
-
Method Detail
-
execute
public void execute()
Description copied from class:CommandExecutes the command.
-
isExecutable
public boolean isExecutable()
Description copied from class:CommandTests if the command can be executed.- Overrides:
isExecutablein classCommand
-
-
DataMelt 3.0 © DataMelt by jWork.ORG