/*
 * Created on Jun 15, 2003
 *
 * To change this generated comment go to 
 * Window>Preferences>Java>Code Generation>Code Template
 */
package jdraw.figures;

import javax.swing.ImageIcon;

import jdraw.framework.DrawEditor;
import jdraw.framework.DrawTool;
import jdraw.framework.DrawToolFactory;

/**
 * @author Christoph
 */
public class RectangleToolFactory implements DrawToolFactory {

	public DrawTool createTool(DrawEditor e) {
		return new RectangleTool(e);
	}

	/* (non-Javadoc)
	 * @see jdraw.framework.DrawToolFactory#getIcon()
	 */
	public ImageIcon getIcon() {
		return new ImageIcon("jdraw/images/RECTANGLE.gif");
//		return new ImageIcon(getClass().getResource("RECTANGLE.gif"));
	}

}
