CH.ifa.draw.standard
Class CutCommand
- java.lang.Object
-
- CH.ifa.draw.util.Command
-
- CH.ifa.draw.standard.CutCommand
-
- Direct Known Subclasses:
- JooneCutCommand
public class CutCommand extends Command
Delete the selection and move the selected figures to the clipboard.- See Also:
Clipboard
-
-
Constructor Summary
Constructors Constructor and Description CutCommand(java.lang.String name, DrawingView view)Constructs a cut 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
-
CutCommand
public CutCommand(java.lang.String name, DrawingView view)Constructs a cut 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