Class SymbolDrawNotification
java.lang.Object
com.nomagic.magicdraw.uml.symbols.SymbolDrawNotification
A manager for registering
SymbolDrawListener
. These listeners are notified when some symbol is drawn in diagram.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSymbolDrawListener
(SymbolDrawListener listener) Registers listener for symbols adding during draw operation.void
addSymbolDrawListener
(com.nomagic.magicdraw.uml.symbols.SymbolDrawListener2 listener) Registers listener for symbols adding during draw operation.static SymbolDrawNotification
getSymbolDrawNotification
(Project project) Returns a shared instance of this manager for given project.void
removeSymbolDrawListener
(SymbolDrawListener listener) Unregisters listener for symbols adding during draw operation.void
removeSymbolDrawListener
(com.nomagic.magicdraw.uml.symbols.SymbolDrawListener2 listener) Unregisters listener for symbols adding during draw operation.
-
Method Details
-
addSymbolDrawListener
Registers listener for symbols adding during draw operation.- Parameters:
listener
- the listener to register.
-
addSymbolDrawListener
@OpenApi public void addSymbolDrawListener(com.nomagic.magicdraw.uml.symbols.SymbolDrawListener2 listener) Registers listener for symbols adding during draw operation.- Parameters:
listener
- the listener to register.
-
removeSymbolDrawListener
Unregisters listener for symbols adding during draw operation.- Parameters:
listener
- the listener to unregister.
-
removeSymbolDrawListener
@OpenApi public void removeSymbolDrawListener(com.nomagic.magicdraw.uml.symbols.SymbolDrawListener2 listener) Unregisters listener for symbols adding during draw operation.- Parameters:
listener
- the listener to unregister.
-
getSymbolDrawNotification
Returns a shared instance of this manager for given project. Every project has its own notification manager.- Parameters:
project
- project to get manager for.- Returns:
- manager.
-