Interface PRDia
- All Superinterfaces:
ADClientAble,ADFindAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELObject,ELPictureAble,ELUUIDAble,MMFormatAble,PRPresContext,PRPresElement
- All Known Subinterfaces:
ACDia,BPDia,BRDia,BSDia,CLClassDia,CLComponentDia,CLCompositeStructureDia,CLDeploymentDia,CLDia,CLHierarchyAbleDia,CLRequirementDia,CLStructureDefinitionDia,CLUseCaseDia,DBDia,DRDecisionRequirementDia,ERDia,ERDiaAll,GCDia,GCDynDia,IMDia,PRAnalysisDia,PRBDia,PRDiaWhiteboard,PRVersionAbleDia,SMDia,SMPDia,SQDia
This is a utility class for PRDia that provides static methods for creation or other purposes.
- See Also:
- Note:
- The interface PRDia describes an abstract ability of an object. Therefore no instances of this type can be found in the repository!
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaddEdgeAndTargetNode(ADClientAble ohNode, ADClientAble ohElem, Class<? extends ELObject> kVOclEdge, Point ptPos, boolean isSourceSide) addEdgesAndTargetNodes(ADClientAble ohNode, List<? extends ADClientAble> seqElem, Class<? extends ELObject> kVOclEdge, Point ptPos, Point ptOffset, boolean isSourceSide) getAddAbleDiaEdge(boolean item) getAddEdgeAndTargetNodeList(ADClientAble ohNode, Class<? extends ELObject> kVOclEdge) Calculates all model elements which may be added as edge of the specified type.getOwnedAnnotations(K_CONTROL_OPTION... behaviourFlags) All annotations owned by this diagram.All callout nodes owned by this diagram.All attachment nodes owned by this diagram.All frame nodes owned by this diagram.getSVGPictureRawData(K_LOCALE kLocale) Returns the SVG picture's raw data assigned to this element.getXClientForSVG(String nameLabel, K_LOCALE kLocale) Fills the client X structure used to generate a SVG for this presentation context and calculates a hash value.voidsetDiaFilterCriteria(boolean hideComments, boolean hideAttachments) Modifies the criteria for visible elements inside the daigram.voidsetSVGPictureRawData(byte[] seqData, String strDiaHash, K_LOCALE kLocale, boolean isActualSVG) Creates a SVG picture instance for this element if it does not already own a picture.Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getEndAnalysisDia, getLogic, getLogic, getPresentationContext, getSection, getStartAnalysisDiaMethods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRelshipTypeList, getTabElementRowList, getTabElementRowTypeList, getTabRelshipList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModifyMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContentsMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwnerMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
deleteMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getNotificationElement, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnitMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasReadMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELPictureAble
getOwnedPicture, getOwnedPictures, getPictureRawData, pictureSetRawDataMethods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getInnoRef, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUIDMethods inherited from interface de.mid.innovator.srv2api.icw2meta.MMFormatAble
copyFormatDlg, copyFormatRule, getCopyFormatDlgInit, getFormatMethods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresContext
getContextFormat, getContextValue, getCopy, getCopyToFile, getHorPage, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginUnit, getModelElementOfTransitiveOwnedPresentationElement, getModelElementOfTransitiveOwnedPresentationElement, getOrientation, getOwnedFooterText, getOwnedHeaderText, getOwnedPresContent, getPageBreakX, getPageBreakY, getPageOrder, getPageView, getVerPage, getXClient, getXClientContentModelElementList, getXClientContentModelElementList, getXClientHash, isPageViewActive, pageView, paste, pasteFromFile, setContextFormat, setContextValue, setHorPage, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setOrientation, setPageViewActive, setVerPageMethods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresElement
getDiagramTagValue, getOpacity, getOwnedDiagramTags, getOwnedPresContentElement, getPresColor, getPresentationOfLogic, setDiagramTagValue, setOpacity, setPresColor
-
Method Details
-
getAddAbleDiaEdge
List<ARG_PRAddAbleEdgeList> getAddAbleDiaEdge(boolean item) throws InoNetException, SrvErrorException Returns a list of all model elements which may be added as edge to this diagram. If the parameter value is true, the list contains graphic information needed to display the edges as selection within the diagram. The parameter value false should be used if the result list is directly used as input of addAbleDiaEdge.- Parameters:
item-- Throws:
InoNetExceptionSrvErrorException
-
getAddEdgeAndTargetNodeList
List<ARG_AddAbleEdgeListType> getAddEdgeAndTargetNodeList(ADClientAble ohNode, Class<? extends ELObject> kVOclEdge) throws InoNetException, SrvErrorException Calculates all model elements which may be added as edge of the specified type. The model elements are grouped according to their logical type and in some cases by their direction.- Parameters:
ohNode- selected nodekVOclEdge- element type of the added edge- Throws:
InoNetExceptionSrvErrorException
-
getSVGPictureRawData
ARG_SVGPictureRawData getSVGPictureRawData(K_LOCALE kLocale) throws InoNetException, SrvErrorException Returns the SVG picture's raw data assigned to this element.- Parameters:
kLocale- locale code used at SVG generation- Throws:
InoNetExceptionSrvErrorException
-
getXClientForSVG
ARG_XClientForSVG getXClientForSVG(String nameLabel, K_LOCALE kLocale) throws InoNetException, SrvErrorException Fills the client X structure used to generate a SVG for this presentation context and calculates a hash value.- Parameters:
nameLabel- name of the color label (optional)kLocale- locale code used at SVG generation- Throws:
InoNetExceptionSrvErrorException
-
addAbleDiaEdge
List<PRPresContent> addAbleDiaEdge(List<ARG_PRAddAbleEdgeList> seq) throws InoNetException, SrvErrorException - Parameters:
seq-- Throws:
InoNetExceptionSrvErrorException
-
addEdgeAndTargetNode
PRDiaEdge addEdgeAndTargetNode(ADClientAble ohNode, ADClientAble ohElem, Class<? extends ELObject> kVOclEdge, Point ptPos, boolean isSourceSide) throws InoNetException, SrvErrorException Adds an element as edge to this diagram. The model element of the specified node is owner of the added element. The target element is added at the specified position.- Parameters:
ohNode- selected nodeohElem- element to be added as edgekVOclEdge- element type of the added edgeptPos- position for the additional nodeisSourceSide- true, if the start node is on source side- Throws:
InoNetExceptionSrvErrorException
-
addEdgesAndTargetNodes
List<PRDiaEdge> addEdgesAndTargetNodes(ADClientAble ohNode, List<? extends ADClientAble> seqElem, Class<? extends ELObject> kVOclEdge, Point ptPos, Point ptOffset, boolean isSourceSide) throws InoNetException, SrvErrorException Adds a list of elements as edges to this diagram. The model element of the specified node is owner of the added elements. The target element is added at the specified position.- Parameters:
ohNode- selected nodeseqElem- list of elements to be added as edgekVOclEdge- element type of the added edgeptPos- position for the first additional nodeptOffset- position offset, if more than one edge is added with nodeisSourceSide- true, if the start node is on source side- Throws:
InoNetExceptionSrvErrorException
-
setDiaFilterCriteria
void setDiaFilterCriteria(boolean hideComments, boolean hideAttachments) throws InoNetException, SrvErrorException Modifies the criteria for visible elements inside the daigram. Elements to be hidden will be visible while the diagram is locked for modifications.- Parameters:
hideComments- flag for hiding the commentshideAttachments- flag for hiding the attachments- Throws:
InoNetExceptionSrvErrorException
-
setSVGPictureRawData
void setSVGPictureRawData(byte[] seqData, String strDiaHash, K_LOCALE kLocale, boolean isActualSVG) throws InoNetException, SrvErrorException Creates a SVG picture instance for this element if it does not already own a picture. The picture is assigned the provided binary data as raw format.- Parameters:
seqData- binary format of the SVG picturestrDiaHash- hash code at SVG generation timekLocale- locale code used at SVG generationisActualSVG- true if SVG exists and the diagram is marked as unchanged- Throws:
InoNetExceptionSrvErrorException
-
getOwnedDiaNote
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedCalloutNode
All callout nodes owned by this diagram.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedFrameNode
All frame nodes owned by this diagram.- Throws:
InoNetExceptionSrvErrorException
-
getDiaWhiteboardNode
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedDiaAttachmentNode
All attachment nodes owned by this diagram.- Throws:
InoNetExceptionSrvErrorException
-
getOwnedAnnotations
List<ADAnnotation> getOwnedAnnotations(K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException All annotations owned by this diagram.- Parameters:
behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the result may be sorted.
-