Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- @(#)DeleteCommand.java 5.2
- */
- package CH.ifa.draw.standard;
- import java.util.*;
- import CH.ifa.draw.util.Command;
- import CH.ifa.draw.framework.*;
- public class DeleteCommand extends FigureTransferCommand {
- public DeleteCommand(String name, DrawingView view) {
- super(name, view);
- }
- public void execute() {
- deleteSelection();
- fView.checkDamage();
- }
- public boolean isExecutable() {
- return fView.selectionCount() > 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement