nothingapplet.java
来自「JHotDraw学习过程中对数组的测试程序haha 学习过程中对数组的测试程序」· Java 代码 · 共 54 行
JAVA
54 行
/* * @(#)NothingApplet.java 5.1 * */package CH.ifa.draw.samples.nothing;import java.applet.Applet;import java.awt.*;import java.util.*;import java.io.*;import java.net.*;import CH.ifa.draw.util.Iconkit;import CH.ifa.draw.framework.*;import CH.ifa.draw.figures.*;import CH.ifa.draw.standard.*;import CH.ifa.draw.applet.*;import CH.ifa.draw.contrib.*;public class NothingApplet extends DrawApplet { //-- DrawApplet overrides ----------------------------------------- protected void createTools(Panel palette) { super.createTools(palette); Tool tool = new TextTool(view(), new TextFigure()); palette.add(createToolButton(IMAGES+"TEXT", "Text Tool", tool)); tool = new CreationTool(view(), new RectangleFigure()); palette.add(createToolButton(IMAGES+"RECT", "Rectangle Tool", tool)); tool = new CreationTool(view(), new RoundRectangleFigure()); palette.add(createToolButton(IMAGES+"RRECT", "Round Rectangle Tool", tool)); tool = new CreationTool(view(), new EllipseFigure()); palette.add(createToolButton(IMAGES+"ELLIPSE", "Ellipse Tool", tool)); tool = new CreationTool(view(), new LineFigure()); palette.add(createToolButton(IMAGES+"LINE", "Line Tool", tool)); tool = new PolygonTool(view()); palette.add(createToolButton(IMAGES+"POLYGON", "Polygon Tool", tool)); tool = new ConnectionTool(view(), new LineConnection()); palette.add(createToolButton(IMAGES+"CONN", "Connection Tool", tool)); tool = new ConnectionTool(view(), new ElbowConnection()); palette.add(createToolButton(IMAGES+"OCONN", "Elbow Connection Tool", tool)); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?