Class ADAnnotationHelper
java.lang.Object
de.mid.innovator.srv2api.icw2meta.ADAnnotationHelper
This is a utility class for ADAnnotation that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ADAnnotationcreateAnnotation(SrvContext srvCtx, ADClientAble ohContext, String strText, List<? extends ADClientAble> seqElem) Creates a new annotation.getAllUserNames(SrvContext srvCtx) All names of users who created at least one annotation.
-
Method Details
-
getAllUserNames
public static List<String> getAllUserNames(SrvContext srvCtx) throws InoNetException, SrvErrorException All names of users who created at least one annotation.- Parameters:
srvCtx- The context of the related innovator server.- Throws:
InoNetExceptionSrvErrorException
-
createAnnotation
public static ADAnnotation createAnnotation(SrvContext srvCtx, ADClientAble ohContext, String strText, List<? extends ADClientAble> seqElem) throws InoNetException, SrvErrorException Creates a new annotation. A referenced parent annotation and a text may be specified. At least one element should be connected to the new annotation.- Parameters:
srvCtx- The context of the related innovator server.ohContext- the diagram of the selected elements or a parent annotationstrText- text of this annotationseqElem- list of elements connected to this annotation- Throws:
InoNetExceptionSrvErrorException
-