Package com.nomagic.magicdraw.ui.browser
Class TreeNodeAdornmentManager
java.lang.Object
com.nomagic.magicdraw.ui.browser.TreeNodeAdornmentManager
Tree node adornment manager provides registers
IconAdornment
, NodeIconAdornment
, TextAdornment
, and NodeTextAdornment
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addIconAdornment
(IconAdornment adornment) Add icon adornment.void
addNodeIconAdornment
(NodeIconAdornment adornment) Add node icon adornment.void
addNodeTextAdornment
(NodeTextAdornment adornment) Add node text adornment.void
addTextAdornment
(TextAdornment adornment) Add text adornment.static TreeNodeAdornmentManager
Get singleton instance.void
removeIconAdornment
(IconAdornment adornment) Remove registered icon adornment.void
removeNodeIconAdornment
(NodeIconAdornment adornment) Remove registered node icon adornment.void
removeTextAdornment
(NodeTextAdornment adornment) Remove registered node text adornment.void
removeTextAdornment
(TextAdornment adornment) Remove registered text adornment.
-
Method Details
-
getInstance
Get singleton instance.- Returns:
- instance.
-
addIconAdornment
Add icon adornment.- Parameters:
adornment
- icon adornment to register.
-
removeIconAdornment
Remove registered icon adornment.- Parameters:
adornment
- icon adornment to remove.
-
addNodeIconAdornment
Add node icon adornment.- Parameters:
adornment
- icon adornment to register
-
removeNodeIconAdornment
Remove registered node icon adornment.- Parameters:
adornment
- icon adornment to remove.
-
addTextAdornment
Add text adornment.- Parameters:
adornment
- text adornment to register.
-
removeTextAdornment
Remove registered text adornment.- Parameters:
adornment
- text adornment to remove.
-
addNodeTextAdornment
Add node text adornment.- Parameters:
adornment
- text adornment to register
-
removeTextAdornment
Remove registered node text adornment.- Parameters:
adornment
- text adornment to remove
-