Package CH.ifa.draw.util

Examples of CH.ifa.draw.util.UndoableTool


      return drawing;
   }

   protected void createTools(JToolBar palette) {
      super.createTools(palette);
      Tool tool = new UndoableTool(new TextTool(this, new TextFigure()));
      palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new RectangleFigure()));
      palette.add(createToolButton(IMAGES + "RECT", "Rectangle Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new RoundRectangleFigure()));
      palette.add(createToolButton(IMAGES + "RRECT", "Round Rectangle Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new EllipseFigure()));
      palette.add(createToolButton(IMAGES + "ELLIPSE", "Ellipse Tool", tool));

      tool = new UndoableTool(new PolygonTool(this));
      palette.add(createToolButton(IMAGES + "POLYGON", "Polygon Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new TriangleFigure()));
      palette.add(createToolButton(IMAGES + "TRIANGLE", "Triangle Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new DiamondFigure()));
      palette.add(createToolButton(IMAGES + "DIAMOND", "Diamond Tool", tool));

      tool = new UndoableTool(new CreationTool(this, new LineFigure()));
      palette.add(createToolButton(IMAGES + "LINE", "Line Tool", tool));

      tool = new TextAreaTool(this, new TextAreaFigure());
      palette.add(createToolButton(IMAGES + "TEXTAREA", "TextArea Tool", tool));
View Full Code Here

TOP

Related Classes of CH.ifa.draw.util.UndoableTool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.