Package org.graffiti.managers
Class DefaultToolManager
java.lang.Object
org.graffiti.managers.DefaultToolManager
- All Implemented Interfaces:
PluginManagerListener
,ToolManager
public class DefaultToolManager extends Object implements ToolManager
Manages the list of tools.
- Version:
- $Revision: 1.5 $
-
Constructor Summary
Constructors Constructor Description DefaultToolManager(ModeManager modeManager)
Constructs a new tool manager. -
Method Summary
Modifier and Type Method Description void
addTool(Tool tool)
Adds the specified tool to the list of tools of this manager.void
pluginAdded(GenericPlugin plugin, PluginDescription desc)
Called by the plugin manager, iff a plugin has been added.
-
Constructor Details
-
DefaultToolManager
Constructs a new tool manager.
-
-
Method Details
-
addTool
Description copied from interface:ToolManager
Adds the specified tool to the list of tools of this manager.- Specified by:
addTool
in interfaceToolManager
- Parameters:
tool
- the tool to be added.
-
pluginAdded
Description copied from interface:PluginManagerListener
Called by the plugin manager, iff a plugin has been added.- Specified by:
pluginAdded
in interfacePluginManagerListener
- Parameters:
plugin
- the added plugin.desc
- the description of the new plugin.
-