Package com.nomagic.magicdraw.ui.browser
Class TreeNodeAdornmentManager
- java.lang.Object
-
- com.nomagic.magicdraw.ui.browser.TreeNodeAdornmentManager
-
@OpenApiAll public final class TreeNodeAdornmentManager extends java.lang.Object
Tree node adornment manager provides registersIconAdornment
,NodeIconAdornment
,TextAdornment
, andNodeTextAdornment
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
getInstance()
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 Detail
-
getInstance
public static TreeNodeAdornmentManager getInstance()
Get singleton instance.- Returns:
- instance.
-
addIconAdornment
public void addIconAdornment(IconAdornment adornment)
Add icon adornment.- Parameters:
adornment
- icon adornment to register.
-
removeIconAdornment
public void removeIconAdornment(IconAdornment adornment)
Remove registered icon adornment.- Parameters:
adornment
- icon adornment to remove.
-
addNodeIconAdornment
public void addNodeIconAdornment(NodeIconAdornment adornment)
Add node icon adornment.- Parameters:
adornment
- icon adornment to register
-
removeNodeIconAdornment
public void removeNodeIconAdornment(NodeIconAdornment adornment)
Remove registered node icon adornment.- Parameters:
adornment
- icon adornment to remove.
-
addTextAdornment
public void addTextAdornment(TextAdornment adornment)
Add text adornment.- Parameters:
adornment
- text adornment to register.
-
removeTextAdornment
public void removeTextAdornment(TextAdornment adornment)
Remove registered text adornment.- Parameters:
adornment
- text adornment to remove.
-
addNodeTextAdornment
public void addNodeTextAdornment(NodeTextAdornment adornment)
Add node text adornment.- Parameters:
adornment
- text adornment to register
-
removeTextAdornment
public void removeTextAdornment(NodeTextAdornment adornment)
Remove registered node text adornment.- Parameters:
adornment
- text adornment to remove
-
-