Class TreeNodeAdornmentManager

java.lang.Object
com.nomagic.magicdraw.ui.browser.TreeNodeAdornmentManager

@OpenApiAll public final class TreeNodeAdornmentManager extends Object
Tree node adornment manager provides registers IconAdornment, NodeIconAdornment, TextAdornment, and NodeTextAdornment.
  • Method Details

    • 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