Class PRDiaAttachmentNodeHelper
- java.lang.Object
-
- de.mid.innovator.srv2api.icw2pres.PRDiaAttachmentNodeHelper
-
public abstract class PRDiaAttachmentNodeHelper extends java.lang.Object
This is a utility class for PRDiaAttachmentNode that provides static methods for creation or other purposes.- See Also:
PRDiaAttachmentNode
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<PRDiaAttachmentNode>
addAttachmentNode(SrvContext srvCtx, PRDia ohDia, java.util.List<? extends MEAttachment> seqAttachment, java.awt.Point ptPos)
Adds attachments as nodes.static ADClientAble
createAttachmentWithNode(SrvContext srvCtx, PRPresElement ohSel, ARG_File valFile, java.awt.Point position)
Attaches a file to the element represented by the presentation element.
-
-
-
Method Detail
-
addAttachmentNode
public static java.util.List<PRDiaAttachmentNode> addAttachmentNode(SrvContext srvCtx, PRDia ohDia, java.util.List<? extends MEAttachment> seqAttachment, java.awt.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:
InoNetException
SrvErrorException
-
createAttachmentWithNode
public static ADClientAble createAttachmentWithNode(SrvContext srvCtx, PRPresElement ohSel, ARG_File valFile, java.awt.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:
InoNetException
SrvErrorException
-
-