Package com.nomagic.magicdraw.ui
Class ElementActivationManager
java.lang.Object
com.nomagic.magicdraw.ui.ElementActivationManager
Register
ElementActivator
instances.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Activate given element with registered activators.void
addActivator
(ElementActivator activator) Register given activator.static ElementActivationManager
Get singleton instance.void
removeActivator
(ElementActivator activator) Remove given registered activator.
-
Method Details
-
getInstance
Get singleton instance.- Returns:
- manager.
-
addActivator
Register given activator.- Parameters:
activator
- activator to register.
-
removeActivator
Remove given registered activator.- Parameters:
activator
- activator to remove.
-
activate
Activate given element with registered activators.- Parameters:
element
- element to activate.- Returns:
- true if activated, otherwise - false.
-