Interface PRPresContext
- All Superinterfaces:
ADClientAble,ADFindAble,ADM2AttrModifyAble,ELContainerAble,ELContAsgnAble,ELDeleteAble,ELElement,ELObject,ELPictureAble,ELUUIDAble,MMFormatAble,PRPresElement
- All Known Subinterfaces:
ACDia,BPDia,BRDia,BSDia,CLClassDia,CLComponentDia,CLCompositeStructureDia,CLDeploymentDia,CLDia,CLHierarchyAbleDia,CLRequirementDia,CLStructureDefinitionDia,CLUseCaseDia,DBDia,DRDecisionRequirementDia,DRPrintContext,ERDia,ERDiaAll,GCDia,GCDynDia,IMDia,PRAnalysisDia,PRBDia,PRDia,PRDiaWhiteboard,PRVersionAbleDia,SMDia,SMPDia,SQDia
This is a utility class for PRPresContext that provides static methods for creation or other purposes.
- Note:
- The interface PRPresContext 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 TypeMethodDescriptionReturns the format of the presentation context.The string value of this presentation context.Fills the copy buffer with the specified elements.getCopyToFile(List<? extends ELElement> seqSel, boolean ownedElementTransitive) Fills the copy file buffer with the specified elements.intReturns the number of horizontal pages of the presentation context.intReturns the bottom margin of the presentation context.intReturns the left margin of the presentation context.intReturns the right margin of the presentation context.intReturns the top margin of the presentation context.The unit of the margins in print view.<T extends MEModelElement>
List<T> getModelElementOfTransitiveOwnedPresentationElement(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) returns the model elements assigned to presentation elements transitively owned by this presentation context.<T extends MEModelElement>
List<T> getModelElementOfTransitiveOwnedPresentationElement(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) The method calls getModelElementOfTransitiveOwnedPresentationElement and filters its return values according to the given stereotype value.Returns the orientation of the presentation context.<T extends PRPresContent>
List<T> getOwnedPresContent(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) All presentation contents owned by this presentation context.The string of all page break x coordinates for this presentation context.The string of all page break y coordinates for this presentation context.The order of pages in print view.Get all page view informations for this presentation context.intReturns the number of vertical pages of the presentation context.getXClient(String nameLabel, boolean dispCompleteness, boolean withAddAbleEdge, boolean withAddAbleCompartments, MESection ohSection) Fills the client X structure for this presentation context.<T extends ADClientAble>
List<T> getXClientContentModelElementList(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) Calculates the displayed presentation contents of thisPRPresContextand returns the corresponding model elements.<T extends ADClientAble>
List<T> getXClientContentModelElementList(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) The method calls getXClientContentModelElementList and filters its return values according to the given stereotype value.getXClientHash(String nameLabel, String strHash) Fills the client X structure for this presentation context and calculates a hash value.booleantrue, if page view is active for this presentation context.voidpageView(K_ORIENTATION orientation, int marginLeft, int marginRight, int marginTop, int marginBottom, int horPage, int verPage, K_PAGEORDER pageOrder, K_UNIT marginUnit, boolean isPageViewActive, String format, List<Integer> seqPageBreakX, List<Integer> seqPageBreakY, ARG_PageViewTextLine valHeader, ARG_PageViewTextLine valFooter) Set all page view informations for this presentation context.Pastes the content of the copy buffer in this presentation context.pasteFromFile(List<? extends ELElement> seqSel, Path file, boolean checkConstraint, Point pos) Pastes the content of the copy file buffer in this presentation context.voidsetContextFormat(String value) Set the value of Attribut ContextFormat.voidsetContextValue(String value) Set the value of Attribut ContextValue.voidsetHorPage(int value) Set the value of Attribut HorPage.voidsetMarginBottom(int value) Set the value of Attribut MarginBottom.voidsetMarginLeft(int value) Set the value of Attribut MarginLeft.voidsetMarginRight(int value) Set the value of Attribut MarginRight.voidsetMarginTop(int value) Set the value of Attribut MarginTop.voidsetOrientation(K_ORIENTATION value) Set the value of Attribut Orientation.voidsetPageViewActive(boolean value) Set the value of Attribut IsPageViewActive.voidsetVerPage(int value) Set the value of Attribut VerPage.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.PRPresElement
getDiagramTagValue, getOpacity, getOwnedDiagramTags, getOwnedPresContentElement, getPresColor, getPresentationOfLogic, setDiagramTagValue, setOpacity, setPresColor
-
Method Details
-
getContextFormat
Returns the format of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setContextFormat
Set the value of Attribut ContextFormat.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getOrientation
Returns the orientation of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setOrientation
Set the value of Attribut Orientation.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginLeft
Returns the left margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginLeft
Set the value of Attribut MarginLeft.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginRight
Returns the right margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginRight
Set the value of Attribut MarginRight.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginTop
Returns the top margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginTop
Set the value of Attribut MarginTop.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginBottom
Returns the bottom margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginBottom
Set the value of Attribut MarginBottom.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getHorPage
Returns the number of horizontal pages of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setHorPage
Set the value of Attribut HorPage.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getVerPage
Returns the number of vertical pages of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setVerPage
Set the value of Attribut VerPage.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getContextValue
The string value of this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setContextValue
Set the value of Attribut ContextValue.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getPageOrder
The order of pages in print view.- Throws:
InoNetExceptionSrvErrorException
-
getMarginUnit
The unit of the margins in print view.- Throws:
InoNetExceptionSrvErrorException
-
isPageViewActive
true, if page view is active for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setPageViewActive
Set the value of Attribut IsPageViewActive.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getPageBreakX
The string of all page break x coordinates for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
getPageBreakY
The string of all page break y coordinates for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
getModelElementOfTransitiveOwnedPresentationElement
<T extends MEModelElement> List<T> getModelElementOfTransitiveOwnedPresentationElement(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException returns the model elements assigned to presentation elements transitively owned by this presentation context.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getModelElementOfTransitiveOwnedPresentationElement
<T extends MEModelElement> List<T> getModelElementOfTransitiveOwnedPresentationElement(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The method calls getModelElementOfTransitiveOwnedPresentationElement and filters its return values according to the given stereotype value.- Parameters:
returnType- Specifies the type of elements to be returned.stereotype- The stereotype used to filter the result listbehaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getXClientContentModelElementList
<T extends ADClientAble> List<T> getXClientContentModelElementList(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException Calculates the displayed presentation contents of thisPRPresContextand returns the corresponding model elements. For aPRDiaWhiteboardthe transitive results of all displayed diagrams are returned, too.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getXClientContentModelElementList
<T extends ADClientAble> List<T> getXClientContentModelElementList(Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException The method calls getXClientContentModelElementList and filters its return values according to the given stereotype value.- Parameters:
returnType- Specifies the type of elements to be returned.stereotype- The stereotype used to filter the result listbehaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException
-
getCopy
List<String> getCopy(List<? extends ELElement> seqSel, boolean ownedElementTransitive) throws InoNetException, SrvErrorException Fills the copy buffer with the specified elements.- Parameters:
seqSel- sequence of elements to copyownedElementTransitive- extend seqSel by its transitive content- Throws:
InoNetExceptionSrvErrorException
-
getCopyToFile
Path getCopyToFile(List<? extends ELElement> seqSel, boolean ownedElementTransitive) throws InoNetException, SrvErrorException Fills the copy file buffer with the specified elements.- Parameters:
seqSel- sequence of elements to copyownedElementTransitive- extend seqSel by its transitive content- Throws:
InoNetExceptionSrvErrorException
-
getPageView
Get all page view informations for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
getXClientHash
ARG_XClientHashOut getXClientHash(String nameLabel, String strHash) throws InoNetException, SrvErrorException Fills the client X structure for this presentation context and calculates a hash value.- Parameters:
nameLabel- name of the color label (optional)strHash- old hash value (optional)- Throws:
InoNetExceptionSrvErrorException
-
getXClient
ARG_XClientOut getXClient(String nameLabel, boolean dispCompleteness, boolean withAddAbleEdge, boolean withAddAbleCompartments, MESection ohSection) throws InoNetException, SrvErrorException Fills the client X structure for this presentation context.- Parameters:
nameLabel- name of the color labeldispCompleteness- calculate the display completenesswithAddAbleEdge- show all add able edgeswithAddAbleCompartments- show all add able compartmentsohSection- model section (optional)- Throws:
InoNetExceptionSrvErrorException
-
pageView
void pageView(K_ORIENTATION orientation, int marginLeft, int marginRight, int marginTop, int marginBottom, int horPage, int verPage, K_PAGEORDER pageOrder, K_UNIT marginUnit, boolean isPageViewActive, String format, List<Integer> seqPageBreakX, List<Integer> seqPageBreakY, ARG_PageViewTextLine valHeader, ARG_PageViewTextLine valFooter) throws InoNetException, SrvErrorException Set all page view informations for this presentation context.- Parameters:
orientation- Returns the orientation of the presentation context.marginLeft- Returns the left margin of the presentation context.marginRight- Returns the right margin of the presentation context.marginTop- Returns the top margin of the presentation context.marginBottom- Returns the bottom margin of the presentation context.horPage- Returns the number of horizontal pages of the presentation context.verPage- Returns the number of vertical pages of the presentation context.pageOrder- The order of pages in print view.marginUnit- The unit of the margins in print view.isPageViewActive- isTrue, if page view is active for this LINK(ocl,PRPresContext,presentation context).format- Returns the format of the presentation context.seqPageBreakX- list of all page break x coordinates for this LINK(ocl,PRPresContext,presentation context).seqPageBreakY- list of all page break y coordinates for this LINK(ocl,PRPresContext,presentation context).valHeader- header text line of this LINK(ocl,PRPresContext,presentation context).valFooter- footer text line of this LINK(ocl,PRPresContext,presentation context).- Throws:
InoNetExceptionSrvErrorException
-
paste
List<ELElement> paste(List<? extends ELElement> seqSel, List<String> seqVList, boolean checkConstraint, Point pos) throws InoNetException, SrvErrorException Pastes the content of the copy buffer in this presentation context.- Parameters:
seqSel- Liste der markierten ElementeseqVList- Stringliste des ASCII-DateicheckConstraint- prüft ob Konfiguration verletzt wirdpos- new position- Throws:
InoNetExceptionSrvErrorException
-
pasteFromFile
List<ELElement> pasteFromFile(List<? extends ELElement> seqSel, Path file, boolean checkConstraint, Point pos) throws InoNetException, SrvErrorException Pastes the content of the copy file buffer in this presentation context.- Parameters:
seqSel- Liste der markierten Elementefile- content of paste buffer (result of copyToFile-command)checkConstraint- prüft ob Konfiguration verletzt wirdpos- new position- Throws:
InoNetExceptionSrvErrorException
-
getOwnedPresContent
<T extends PRPresContent> List<T> getOwnedPresContent(Class<T> returnType, K_CONTROL_OPTION... behaviourFlags) throws InoNetException, SrvErrorException All presentation contents owned by this presentation context.- Parameters:
returnType- Specifies the type of elements to be returned.behaviourFlags- An optional list of enum values to control the behaviour of the command.- Throws:
InoNetExceptionSrvErrorException- Sorted:
- the result may be sorted.
-
getOwnedHeaderText
- Throws:
InoNetExceptionSrvErrorException
-