资源简介
代码片段和文件信息
/*
* @(#)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
相关资源
- codesys所有函数的详细说明
- mp3decode.rar
- guided image filting
- NXP LIN plugin
- QRCode国家标准PDF版本和Word修改版
- stm32f4 ad波形采集用da接示波器
- 机器学习_基于朴素贝叶斯算法_疾病预
- CodePro Analytix
- Fira Code字体
- funcode坦克大战加强版
- GemBox源代码
- 拷烂碟 CloneCD
- 01_myCode_手动集成极光推送
- FiraCode1.2 最适合程序员的编程字体
- HEVC Reference Software (HM) 16.10
- AUTOSAR OPEN SOURCE CODE
- MIMO Wireless Communications: From Real-World
- SocketCoder语音/视频会议模块源码2013
- clean code高清英文版pdf
- CloneCD 4.2.0.2
- ISO/IEC18004 2006 QRcode二维码标准 中文
- CODE V的使用说明书
- cyclone V封装及原理图
- A10-rtsph264_硬件编码.zip
- Cyclone-IV-器件中的时钟网络与PLL
- 两级OTA或Cascode OTA设计
- QrCode.rar
- Sysinternals_Source.zip
- keyclone_v1.8k配置版直接使用
- Csf Codec解码器
评论
共有 条评论