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

📄 joonestandarddrawingview.java

📁 拥有图形界面的
💻 JAVA
字号:
package org.joone.edit;import CH.ifa.draw.standard.*;import CH.ifa.draw.framework.*;/** * This class extends StandardDrawingView to determin whether the drawing has been modified. * The modified attribute is used by JoonEdit to see whether to prompt for Save. */public  class JooneStandardDrawingView extends StandardDrawingView {    /** Is the drawing modified since last save? */    private boolean modified = false;    /**     * Constructs the view.     */    public JooneStandardDrawingView(DrawingEditor editor, int width, int height) {        super(editor, width, height);    }    /**     * Method to redraw drawing and also to set the drawing as modified.     */    public void repairDamage() {        super.repairDamage();        modified = true;    }    /**     * See if drawing is modified.     * @return whether the drawing is modified.     */    public boolean isModified() {        return modified;    }    /**     * Clear the modified status e.g. after a Save.     */    public void setModified(boolean mod) {        modified = mod;    }}

⌨️ 快捷键说明

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