示例#1
0
  protected void createTools(Panel palette) {
    super.createTools(palette);

    Tool tool = new TextTool(view(), new NodeFigure());
    palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));

    tool = new CreationTool(view(), new NodeFigure());
    palette.add(createToolButton(IMAGES + "RECT", "Create Org Unit", tool));

    tool = new ConnectionTool(view(), new LineConnection());
    palette.add(createToolButton(IMAGES + "CONN", "Connection Tool", tool));
  }
示例#2
0
 public static void main(String[] args) {
   DrawApplication window = new NetApp();
   window.open();
 }