资源简介
代码片段和文件信息
/*
* @(#)Drawapplet.java
*
* Project: JHotdraw - a GUI framework for technical drawings
* http://www.jhotdraw.org
* http://jhotdraw.sourceforge.net
* Copyright: ?by the original author(s) and all contributors
* License: Lesser GNU Public License (LGPL)
* http://www.opensource.org/licenses/lgpl-license.html
*/
package CH.ifa.draw.applet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
import java.net.*;
import CH.ifa.draw.framework.*;
import CH.ifa.draw.standard.*;
import CH.ifa.draw.figures.*;
import CH.ifa.draw.util.*;
/**
* DrawApplication defines a standard presentation for
* a drawing editor that is run as an applet. The presentation is
* customized in subclasses.
* Supported applet parameters:
* DRAWINGS: a blank separated list of drawing names that is
* shown in the drawings choice.
*
* @version <$CURRENT_VERSION$>
*/
public class Drawapplet
extends Japplet
implements DrawingEditor PaletteListener VersionRequester {
private transient Drawing fDrawing;
private transient Tool fTool;
private transient DrawingView fView;
private transient ToolButton fDefaultToolButton;
private transient ToolButton fSelectedToolButton;
private transient boolean fSimpleUpdate;
private transient JButton fUpdateButton;
private transient JComboBox fframeColor;
private transient JComboBox fFillColor;
private transient JComboBox fTextColor;
private transient JComboBox fArrowChoice;
private transient JComboBox fFontChoice;
private transient Thread fSleeper;
private transient UndoManager myUndoManager;
static String fgUntitled = “untitled“;
private static final String fgDrawPath = “/CH/ifa/draw/“;
public static final String IMAGES = fgDrawPath+“images/“;
/**
* Initializes the applet and creates its contents.
*/
public void init() {
createIconkit();
getVersionControlStrategy().assertCompatibleVersion();
setUndoManager(new UndoManager());
getContentPane().setLayout(new BorderLayout());
fView = createDrawingView();
JPanel attributes = createAttributesPanel();
createAttributeChoices(attributes);
getContentPane().add(“North“ attributes);
JPanel toolPanel = createToolPalette();
createTools(toolPanel);
getContentPane().add(“West“ toolPanel);
getContentPane().add(“Center“ (Component)view());
JPanel buttonPalette = createButtonPanel();
createButtons(buttonPalette);
getContentPane().add(“South“ buttonPalette);
initDrawing();
// JFC should have its own internal double buffering...
//setBufferedDisplayUpdate();
setupAttributes();
}
public void addViewChangeListener(ViewChangeListener vsl) {
}
public void removeViewChangeListener(ViewChangeListener vsl) {
}
protected Iconkit createIconkit() {
return new Iconkit(this);
}
/*
* Gets the i
相关资源
- 条码字体barcode128
- STM32蓝牙和串口程序
- UNICODE GBK双向码表二进制文件
- 常用编码(UnicodeUTF-8GBK)转换工具
- vc URL编解码类
- 中文转化unicoder码的方法
- Cyclone 10LP Remote Update Intel FPGA IP 官方工
- codesys编程手册中文版
- XSS Encode
- LHC生命周期前沿的非弹性暗物质:A
- arm cortex m0 rtl code
- Xcode 12.3(16F156)安装包.zip
- windows 64位系统下安装Code Warrior6.3方法
- Zxing-Code_128一维码
- CODE128A 字体
- Code 128 字体
- INBarcodeOCR条码识别组件,识别率及速
- code39条形码字体
- ep3c25Q240原理图
- 飞思卡尔68HC08Metrowerks_CodeWarrior开发软
- codewarrior使用指南中文版
- Code Warrior License 破解,各个版本可用
- Codewarrior HCS12 V5.1 license
- codewarrior6.3 win10环境可以安装的破解
- Codesys变成入门手册
- patchedcode.bin
- 奥科网关M1000B配置手册.docx
- icm20948_Sensor_Code.zip
- OzCode3.X Patch 注册机
- Qt实现Code39条形码
评论
共有 条评论