Class PRDiaAttachmentNodeHelper
java.lang.Object
de.mid.innovator.srv2api.icw2pres.PRDiaAttachmentNodeHelper
This is a utility class for PRDiaAttachmentNode that provides static methods for creation or other purposes.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<PRDiaAttachmentNode> addAttachmentNode(SrvContext srvCtx, PRDia ohDia, List<? extends MEAttachment> seqAttachment, Point ptPos) Adds attachments as nodes.static ADClientAblecreateAttachmentWithNode(SrvContext srvCtx, PRPresElement ohSel, ARG_File valFile, Point position) Attaches a file to the element represented by the presentation element.
-
Method Details
-
addAttachmentNode
public static List<PRDiaAttachmentNode> addAttachmentNode(SrvContext srvCtx, PRDia ohDia, List<? extends MEAttachment> seqAttachment, Point ptPos) throws InoNetException, SrvErrorException Adds attachments as nodes.- Parameters:
srvCtx- The context of the related innovator server.ohDia- diagram which owns the added nodesseqAttachment- list of attachmentsptPos- position of the new node- Throws:
InoNetExceptionSrvErrorException
-
createAttachmentWithNode
public static ADClientAble createAttachmentWithNode(SrvContext srvCtx, PRPresElement ohSel, ARG_File valFile, Point position) throws InoNetException, SrvErrorException Attaches a file to the element represented by the presentation element. If a diagram is passed as the presentation element, the file will be attached to the diagram and the node will be placed inside the diagram without any connections.- Parameters:
srvCtx- The context of the related innovator server.ohSel- the presentation element the file is dropped onvalFile- the attached fileposition- Position of the new node- Throws:
InoNetExceptionSrvErrorException
-