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

📄 joonecutcommand.java

📁 拥有图形界面的
💻 JAVA
字号:
package org.joone.edit;import java.util.*;import CH.ifa.draw.framework.*;import CH.ifa.draw.standard.*;public class JooneCutCommand extends CutCommand {    public JooneCutCommand(String name, DrawingView view) {        super(name, view);    }    public boolean isExecutable() {        // Disable if Joone components selected.        if (fView.selectionCount() > 0) {            FigureEnumeration fe = fView.selectionElements();            try {                while (true) {                    Figure f = fe.nextFigure();                    if (f instanceof ConcreteGenericFigure) {                        return false;                    }                }            } catch (NoSuchElementException e) {                // End of enumeration.            }            return true;        } else {            return false;        }    }}

⌨️ 快捷键说明

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