jooneduplicatecommand.java
来自「拥有图形界面的」· Java 代码 · 共 37 行
JAVA
37 行
package org.joone.edit;import java.util.*;import CH.ifa.draw.framework.*;import CH.ifa.draw.standard.*;public class JooneDuplicateCommand extends DuplicateCommand { public JooneDuplicateCommand(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 + =
减小字号Ctrl + -
显示快捷键?