/*
* @(#)NetApp.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 org.jhotdraw.samples.net;
import javax.swing.JToolBar;
import org.jhotdraw.framework.*;
import org.jhotdraw.standard.*;
import org.jhotdraw.figures.*;
import org.jhotdraw.application.DrawApplication;
/**
* @version <$CURRENT_VERSION$>
*/
public class NetApp extends DrawApplication {
public NetApp() {
super("Net");
}
protected void createTools(JToolBar palette) {
super.createTools(palette);
Tool tool = new TextTool(this, new NodeFigure());
palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));
tool = new CreationTool(this, new NodeFigure());
palette.add(createToolButton(IMAGES + "RECT", "Create Org Unit", tool));
tool = new ConnectionTool(this, new LineConnection());
palette.add(createToolButton(IMAGES + "CONN", "Connection Tool", tool));
}
//-- main -----------------------------------------------------------
public static void main(String[] args) {
DrawApplication window = new NetApp();
window.open();
}
}