Package com.nomagic.magicdraw.annotation
Class AnnotationManager.DefaultAnnotatableChildrenConfigurator
- java.lang.Object
-
- com.nomagic.magicdraw.annotation.AnnotationManager.DefaultAnnotatableChildrenConfigurator
-
- Enclosing class:
- AnnotationManager
private static class AnnotationManager.DefaultAnnotatableChildrenConfigurator extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultAnnotatableChildrenConfigurator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nomagic.magicdraw.annotation.AnnotatableChildrenInspector
getChildrenInspector(BaseElement element)
boolean
isAncestor(BaseElement parent, BaseElement element)
private static boolean
isParentClosestNotHiddenElement(Element parent, Element targetElement)
Evaluates, if given parent element could be closest use-friendly element for target element.
-
-
-
Method Detail
-
getChildrenInspector
public com.nomagic.magicdraw.annotation.AnnotatableChildrenInspector getChildrenInspector(BaseElement element)
-
isAncestor
public boolean isAncestor(BaseElement parent, BaseElement element)
-
isParentClosestNotHiddenElement
private static boolean isParentClosestNotHiddenElement(@CheckForNull Element parent, Element targetElement)
Evaluates, if given parent element could be closest use-friendly element for target element. Dedicated for diagrams.- Parameters:
parent
- parent element, which should be user-friendly.targetElement
- targetElement - actual element, which should be not user-friendly.- Returns:
- True, if target element's closest not hidden symbol element is given parent.
-
-