/*
 * Created on Jun 15, 2003
 *
 * To change this generated comment go to 
 * Window>Preferences>Java>Code Generation>Code Template
 */
package jdraw.framework;

import javax.swing.ImageIcon;

/**
 * A DrawTool factory creates an instance of a draw tool and returns an icon
 * which can be used in the tool palette of the graphics editor.
 */
public interface DrawToolFactory {
	
	/**
	 * Creates a DrawTool
	 * @param e A Draw editor
	 * @return a new DrawTool
	 */
	DrawTool createTool(DrawEditor e);
	
	/**
	 * Returns an icon which can be used to provide access to the tool with
	 * a tool bar.
	 * If no icon is available then null is returned.
	 */
	ImageIcon getIcon();
}
