jdraw.framework
Interface DrawToolFactory


public interface DrawToolFactory

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.


Method Summary
 jdraw.framework.DrawTool createTool(jdraw.framework.DrawEditor e)
          Returns a draw tool.
 javax.swing.ImageIcon getIcon()
          Returns an icon which can be used to provide access to the tool with a tool bar.
 

Method Detail

createTool

public jdraw.framework.DrawTool createTool(jdraw.framework.DrawEditor e)
Returns a draw tool.


getIcon

public javax.swing.ImageIcon getIcon()
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.