de.mid.innovator.srv2api.icw2pres
Class PRDiaAttachmentNodeHelper

java.lang.Object
  extended by de.mid.innovator.srv2api.icw2pres.PRDiaAttachmentNodeHelper

public abstract class PRDiaAttachmentNodeHelper
extends Object

This is a utility class for PRDiaAttachmentNode that provides static methods for creation or other purposes.

See Also:
PRDiaAttachmentNode

Method Summary
static List<PRDiaAttachmentNode> addAttachmentNode(SrvContext srvCtx, PRDia ohDia, List<? extends MEAttachment> seqAttachment, Point ptPos)
          Adds attachments as nodes.
static ADClientAble createAttachmentWithNode(SrvContext srvCtx, PRPresElement ohSel, ARG_File valFile, Point position)
          Attaches a file to the element represented by the presentation element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 nodes
seqAttachment - list of attachments
ptPos - position of the new node
Throws:
InoNetException
SrvErrorException

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 on
valFile - the attached file
position - Position of the new node
Throws:
InoNetException
SrvErrorException