package jdraw.framework;

/**
 * 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.
 *
 * @see DrawTool
 *
 * @author  Dominik Gruntz
 * @version 2.0
 */
public interface DrawToolFactory {
	/**
	 * Returns a draw tool.
	 */
	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.
	 */
	javax.swing.ImageIcon getIcon();
}
