⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cutcommand.java

📁 JHotDraw学习过程中对数组的测试程序haha 学习过程中对数组的测试程序
💻 JAVA
字号:
/* * @(#)CutCommand.java 5.1 * */package CH.ifa.draw.standard;import java.util.*;import java.awt.*;import CH.ifa.draw.util.*;import CH.ifa.draw.framework.*;/** * Delete the selection and move the selected figures to * the clipboard. * @see Clipboard */public class CutCommand extends FigureTransferCommand {   /**    * Constructs a cut command.    * @param name the command name    * @param view the target view    */    public CutCommand(String name, DrawingView view) {        super(name, view);    }    public void execute() {        copySelection();        deleteSelection();        fView.checkDamage();    }    public boolean isExecutable() {        return fView.selectionCount() > 0;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -