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,IMDia,PRAnalysisDia,PRBDia,PRDia,PRDiaWhiteboard,PRVersionAbleDia,SMDia,SMPDia,SQDia
public interface PRPresContext extends PRPresElement, ADFindAble, ELPictureAble
This is a utility class for PRPresContext that provides static methods for creation or other purposes.- See Also:
PRPresContextHelper- 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 Modifier and Type Interface Description static classPRPresContext.VAttr
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetContextValue()The string value of this presentation context.java.util.List<java.lang.String>getCopy(java.util.List<? extends ELElement> seqSel, boolean ownedElementTransitive)Fills the copy buffer with the specified elements.byte[]getCopyToFile(java.util.List<? extends ELElement> seqSel, boolean ownedElementTransitive)Fills the copy file buffer with the specified elements.java.lang.StringgetFormat()Returns the format of the presentation context.intgetHorPage()Returns the number of horizontal pages of the presentation context.ARG_PRPresContextLayoutgetLayout()Gets the layout values (format,orientation,margins,pagecount) of the given context.intgetMarginBottom()Returns the bottom margin of the presentation context.intgetMarginLeft()Returns the left margin of the presentation context.intgetMarginRight()Returns the right margin of the presentation context.intgetMarginTop()Returns the top margin of the presentation context.K_UNITgetMarginUnit()The unit of the margins in print view.<T extends MEModelElement>
java.util.List<T>getModelElementOfTransitiveOwnedPresentationElement(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)returns the model elements assigned to presentation elements transitively owned by this presentation context.<T extends MEModelElement>
java.util.List<T>getModelElementOfTransitiveOwnedPresentationElement(java.lang.Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags)The method calls getModelElementOfTransitiveOwnedPresentationElement and filters its return values according to the given stereotype value.K_ORIENTATIONgetOrientation()Returns the orientation of the presentation context.PRPresTextgetOwnedFooterText()PRPresTextgetOwnedHeaderText()<T extends PRPresContent>
java.util.List<T>getOwnedPresContent(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)All presentation contents owned by this presentation context.java.lang.StringgetPageBreakX()The string of all page break x coordinates for this presentation context.java.lang.StringgetPageBreakY()The string of all page break y coordinates for this presentation context.K_PAGEORDERgetPageOrder()The order of pages in print view.ARG_PageViewContextgetPageView()Get all page view informations for this presentation context.intgetVerPage()Returns the number of vertical pages of the presentation context.ARG_XClientOutgetXClient(java.lang.String nameLabel, boolean dispCompleteness, boolean withAddAbleEdge, boolean withAddAbleCompartments, MESection ohSection, K_ERDIA kERDia)Fills the client X structure for this presentation context.<T extends ADClientAble>
java.util.List<T>getXClientContentModelElementList(java.lang.Class<T> returnType, K_CONTROL_OPTION... behaviourFlags)Calculates the displayed presentation contents of thisPRPresContextand returns the corresponding model elements.<T extends ADClientAble>
java.util.List<T>getXClientContentModelElementList(java.lang.Class<T> returnType, MMStereotype stereotype, K_CONTROL_OPTION... behaviourFlags)The method calls getXClientContentModelElementList and filters its return values according to the given stereotype value.ARG_XClientHashOutgetXClientHash(java.lang.String nameLabel, java.lang.String strHash)Fills the client X structure for this presentation context and calculates a hash value.booleanisPageViewActive()true, if page view is active for this presentation context.voidlayout(java.lang.String format, K_ORIENTATION orientation, int marginLeft, int marginRight, int marginTop, int marginBottom, int horPage, int verPage)Sets the layout values (format,orientation,margins,pagecount) of the given 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, java.lang.String format, java.util.List<java.lang.Integer> seqPageBreakX, java.util.List<java.lang.Integer> seqPageBreakY, ARG_PageViewTextLine valHeader, ARG_PageViewTextLine valFooter)Set all page view informations for this presentation context.java.util.List<ELElement>paste(java.util.List<? extends ELElement> seqSel, java.util.List<java.lang.String> seqVList, boolean checkConstraint, java.awt.Point pos)Pastes the content of the copy buffer in this presentation context.java.util.List<ELElement>pasteFromFile(java.util.List<? extends ELElement> seqSel, byte[] file, boolean checkConstraint, java.awt.Point pos)Pastes the content of the copy file buffer in this presentation context.voidsetContextValue(java.lang.String value)Set the value of Attribut ContextValue.voidsetFormat(java.lang.String value)Set the value of Attribut Format.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, getStartAnalysisDia
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRowList, getTabElementRowTypeList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModify
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getClientDependency, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, sortContents
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
delete
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELPictureAble
getOwnedPicture, getPictureRawData, pictureSetRawData
-
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELUUIDAble
getHyperlinkReferenceAble, getNotToTranslateAttribute, getTranslatedValue, getUUID, setUUID
-
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMFormatAble
copyFormatDlg, copyFormatRule, getCopyFormatDlgInit, getFormat
-
Methods inherited from interface de.mid.innovator.srv2api.icw2pres.PRPresElement
getOpacity, getOwnedPresContentElement, getPresColor, getPresentationOfLogic, setOpacity, setPresColor
-
-
-
-
Method Detail
-
getFormat
java.lang.String getFormat() throws InoNetException, SrvErrorExceptionReturns the format of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setFormat
void setFormat(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Attribut Format.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getOrientation
K_ORIENTATION getOrientation() throws InoNetException, SrvErrorException
Returns the orientation of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setOrientation
void setOrientation(K_ORIENTATION value) throws InoNetException, SrvErrorException
Set the value of Attribut Orientation.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginLeft
int getMarginLeft() throws InoNetException, SrvErrorExceptionReturns the left margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginLeft
void setMarginLeft(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut MarginLeft.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginRight
int getMarginRight() throws InoNetException, SrvErrorExceptionReturns the right margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginRight
void setMarginRight(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut MarginRight.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginTop
int getMarginTop() throws InoNetException, SrvErrorExceptionReturns the top margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginTop
void setMarginTop(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut MarginTop.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getMarginBottom
int getMarginBottom() throws InoNetException, SrvErrorExceptionReturns the bottom margin of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setMarginBottom
void setMarginBottom(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut MarginBottom.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getHorPage
int getHorPage() throws InoNetException, SrvErrorExceptionReturns the number of horizontal pages of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setHorPage
void setHorPage(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut HorPage.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getVerPage
int getVerPage() throws InoNetException, SrvErrorExceptionReturns the number of vertical pages of the presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setVerPage
void setVerPage(int value) throws InoNetException, SrvErrorExceptionSet the value of Attribut VerPage.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getContextValue
java.lang.String getContextValue() throws InoNetException, SrvErrorExceptionThe string value of this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setContextValue
void setContextValue(java.lang.String value) throws InoNetException, SrvErrorExceptionSet the value of Attribut ContextValue.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getPageOrder
K_PAGEORDER getPageOrder() throws InoNetException, SrvErrorException
The order of pages in print view.- Throws:
InoNetExceptionSrvErrorException
-
getMarginUnit
K_UNIT getMarginUnit() throws InoNetException, SrvErrorException
The unit of the margins in print view.- Throws:
InoNetExceptionSrvErrorException
-
isPageViewActive
boolean isPageViewActive() throws InoNetException, SrvErrorExceptiontrue, if page view is active for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
setPageViewActive
void setPageViewActive(boolean value) throws InoNetException, SrvErrorExceptionSet the value of Attribut IsPageViewActive.- Parameters:
value- The value to be set.- Throws:
InoNetExceptionSrvErrorException
-
getPageBreakX
java.lang.String getPageBreakX() throws InoNetException, SrvErrorExceptionThe string of all page break x coordinates for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
getPageBreakY
java.lang.String getPageBreakY() throws InoNetException, SrvErrorExceptionThe string of all page break y coordinates for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
getModelElementOfTransitiveOwnedPresentationElement
<T extends MEModelElement> java.util.List<T> getModelElementOfTransitiveOwnedPresentationElement(java.lang.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> java.util.List<T> getModelElementOfTransitiveOwnedPresentationElement(java.lang.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> java.util.List<T> getXClientContentModelElementList(java.lang.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> java.util.List<T> getXClientContentModelElementList(java.lang.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
java.util.List<java.lang.String> getCopy(java.util.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
byte[] getCopyToFile(java.util.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
-
getLayout
ARG_PRPresContextLayout getLayout() throws InoNetException, SrvErrorException
Gets the layout values (format,orientation,margins,pagecount) of the given context.- Throws:
InoNetExceptionSrvErrorException
-
getPageView
ARG_PageViewContext getPageView() throws InoNetException, SrvErrorException
Get all page view informations for this presentation context.- Throws:
InoNetExceptionSrvErrorException
-
getXClientHash
ARG_XClientHashOut getXClientHash(java.lang.String nameLabel, java.lang.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(java.lang.String nameLabel, boolean dispCompleteness, boolean withAddAbleEdge, boolean withAddAbleCompartments, MESection ohSection, K_ERDIA kERDia) 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)kERDia- kind of er diagram (optional)- Throws:
InoNetExceptionSrvErrorException
-
layout
void layout(java.lang.String format, K_ORIENTATION orientation, int marginLeft, int marginRight, int marginTop, int marginBottom, int horPage, int verPage) throws InoNetException, SrvErrorExceptionSets the layout values (format,orientation,margins,pagecount) of the given context.- Parameters:
format- format of the presentation contextorientation- orientation of the presentation contextmarginLeft- margin on the left bordermarginRight- margin on the right bordermarginTop- margin on the top bordermarginBottom- margin on the bottom borderhorPage- number of horinzontal pagesverPage- number of vertical pages- 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, java.lang.String format, java.util.List<java.lang.Integer> seqPageBreakX, java.util.List<java.lang.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
java.util.List<ELElement> paste(java.util.List<? extends ELElement> seqSel, java.util.List<java.lang.String> seqVList, boolean checkConstraint, java.awt.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
java.util.List<ELElement> pasteFromFile(java.util.List<? extends ELElement> seqSel, byte[] file, boolean checkConstraint, java.awt.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> java.util.List<T> getOwnedPresContent(java.lang.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
PRPresText getOwnedHeaderText() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
getOwnedFooterText
PRPresText getOwnedFooterText() throws InoNetException, SrvErrorException
- Throws:
InoNetExceptionSrvErrorException
-
-