tool = new CreationTool(this, new ComponentFigure(button, this));
tool = new CreationTool(this, new ComponentFigure(button));
	protected void createTools(JToolBar palette) {		super.createTools(palette);		Tool tool = new ZoomTool(this);		palette.add(createToolButton(IMAGES + "ZOOM", "Zoom Tool", tool));		tool = new UndoableTool(new TextTool(this, new TextFigure()));		palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));		tool = new UndoableTool(new ConnectedTextTool(this, new TextFigure()));		palette.add(createToolButton(IMAGES + "ATEXT", "Connected Text Tool", tool));		tool = new URLTool(this);		palette.add(createToolButton(IMAGES + "URL", "URL 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 UndoableTool(new ConnectionTool(this, new LineConnection()));		palette.add(createToolButton(IMAGES + "CONN", "Connection Tool", tool));		tool = new UndoableTool(new ConnectionTool(this, new ElbowConnection()));		palette.add(createToolButton(IMAGES + "OCONN", "Elbow Connection Tool", tool));		tool = new UndoableTool(new ScribbleTool(this));		palette.add(createToolButton(IMAGES + "SCRIBBL", "Scribble Tool", tool));		tool = new UndoableTool(new BorderTool(this));		palette.add(createToolButton(IMAGES + "BORDDEC", "Border Tool", tool));		Component button = new JButton("Hello World");		tool = new CreationTool(this, new ComponentFigure(button, this));		palette.add(createToolButton(IMAGES + "RECT", "Component Tool", tool));		tool = new TextAreaTool(this, new TextAreaFigure());		palette.add(createToolButton(IMAGES + "TEXTAREA", "TextArea Tool", tool));		GraphicalCompositeFigure fig = new GraphicalCompositeFigure();		fig.setLayouter(new SimpleLayouter(fig));		tool = new CreationTool(this, fig);		palette.add(createToolButton(IMAGES + "RECT", "Container Figure Tool", tool));		tool = new CompositeFigureCreationTool(this, new RectangleFigure());		palette.add(createToolButton(IMAGES + "RECT", "Nested Figure Tool", tool));		tool = new HTMLTextAreaTool(this, new HTMLTextAreaFigure());		palette.add(createToolButton(IMAGES + "TEXTAREA", "HTML TextArea Tool", tool));		LineConnection lineConnection = new LineConnection();		lineConnection.setStartDecoration(null);		tool = new UndoableTool(new SplitConnectionTool(this, lineConnection));		palette.add(createToolButton(IMAGES + "OCONN", "Elbow Connection Tool", tool));	}