Class CommandManagerFactory
java.lang.Object
rs.edu.raf.dsw.rudok.app.gui.swing.command.CommandManagerFactory
public class CommandManagerFactory extends Object
Assigns one
CommandManager
to each MindMap
. This is done so as to avoid adding CommandManager
features to the rs.edu.raf.dsw.rudok.app.repository
package, thus avoiding unnecessary coupling.-
Constructor Summary
Constructors Constructor Description CommandManagerFactory()
-
Method Summary
Modifier and Type Method Description static CommandManager
getCommandManager(MindMap mindMap)
Returns theCommandManager
assigned to the passedMindMap
, or creates a new one if not existing.
-
Constructor Details
-
CommandManagerFactory
public CommandManagerFactory()
-
-
Method Details
-
getCommandManager
Returns theCommandManager
assigned to the passedMindMap
, or creates a new one if not existing.- Parameters:
mindMap
-MindMap
to fetch theCommandManager
for.- Returns:
CommandManager
instance.
-