neteditor.java

来自「Rakiura JFern是一个非常轻型的带有模拟器的Petri网络框架」· Java 代码 · 共 64 行

JAVA
64
字号
// This is copyrighted source file, part of Rakiura JFern package. // See the file LICENSE for copyright information and the terms and conditions// for copying, distributing and modifications of Rakiura JFern package.// Copyright (C) 1999-2002 by Mariusz Nowostawski and others  [http://www.rakiura.org]package org.rakiura.cpn.gui;/**/import javax.swing.JToolBar;import org.rakiura.draw.basic.DrawingApplication;import org.rakiura.draw.*;import org.rakiura.draw.figure.*;/** * Implements simple CPN editor. This editor allows the user to * design Petri Net, dump it into XML, compile it into executable * Fernlet, and run the comiled net in the debugging window (see * ({@link NetViewer}. *  *<br><br> * NetEditor.java<br> * Created: Thu Apr 18 13:59:47 2002<br> * *@author  <a href="mariusz@rakiura.org">Mariusz Nowostawski</a> *@version 2.1.0 $Revision: 1.5 $ $Date: 2002/05/31 05:34:07 $ *@since 2.0 */public class NetEditor extends DrawingApplication {    public NetEditor(final String aTitle) {    super(aTitle);  }  private static String IMAGES = "/org/rakiura/cpn/gui/image/";  protected void createTools(JToolBar palette) {    super.createTools(palette);    Tool tool = new ConnectionTool("Connection", new LineConnection());    palette.add(createToolButton(IMAGES+"arc.gif", "Connection Tool", tool));    tool = new CreationTool("bbbbb", new TextFigure());    palette.add(createToolButton(IMAGES+"transition.gif", "Text Tool", tool));    tool = new CreationTool("aaaaa", new NodeRect());    palette.add(createToolButton(IMAGES+"place.gif", "Node Tool", tool));        tool = new CreationTool("ccccc", new LineFigure());    palette.add(createToolButton(IMAGES+"action.gif", "Line Tool", tool));  }  public static void main(String[] args) {    final NetEditor e = new NetEditor("JFern Net Editor");    //e.onOpenNew();  }  } // NetEditor//////////////////// end of file ////////////////////

⌨️ 快捷键说明

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