Class MatrixSettings
java.lang.Object
com.nomagic.magicdraw.dependencymatrix.persistence.MatrixSettings
Matrix settings source. All settings are loaded from Dependency Matrix diagram component
and visible through edit specification dialog
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Dependency filter and default edit direction setting enumstatic enum
static enum
Dependency Matrix group tree display modesstatic enum
Show relationships option enumstatic enum
sort mode enumstatic enum
Column elements text direction -
Constructor Summary
ConstructorDescriptionMatrixSettings
(Element matrixElement) Loads matrix settings for this element -
Method Summary
Modifier and TypeMethodDescriptionboolean
Hide Types propertyvoid
void
Collapsed column nodes propertyColumn custom order propertyColumn header height propertyColumn owner display mode propertyColumn sorting mode propertyColumn text direction propertyDependency criteria propertyDescription area propertyDependency direction propertyDependency matrix elementCollapsed row nodes propertyRow Custom Order propertyRow header width propertyRow owner display mode propertyRow sorting mode propertyShow Elements propertyboolean
Suppress criteria area propertyboolean
Hide dependency criteria propertyboolean
Is dependency matrix elements may be changedboolean
boolean
Read Only propertyboolean
Scope Hidden propertyboolean
Show inner dependencies propertyboolean
Whole model as scope propertyvoid
setColumnCollapsedNodes
(List<String> columnCollapsedNodes) Collapsed column nodes propertyvoid
setColumnCustomOrder
(String columnCustomSortedElements) Column custom order propertyvoid
setColumnHeaderHeight
(int height) Column header height propertyvoid
setColumnOwnerDisplayMode
(MatrixSettings.OwnerDisplayMode displayType) Column owner display mode propertyvoid
setColumnSortingMode
(MatrixSettings.SortingMode sortingMode) Column sorting mode propertyvoid
setColumnSortingMode
(MatrixSettings.SortingMode sortingMode, boolean handleOrderTag) Column sorting mode property.void
Column text direction propertyvoid
setDependencyCriteria
(List<String> dependencyCriteria) Dependency criteria propertyvoid
setDescriptionArea
(String descriptionArea) Description area propertyvoid
setDirection
(MatrixSettings.Direction direction) Dependency direction propertyvoid
setHideDependencyCriteria
(boolean hideCriteria) Hide dependency criteria propertyvoid
setHideScope
(boolean hideScope) Scope Hidden propertyvoid
setHideTypes
(boolean hideTypes) Hide Types propertyvoid
setReadOnly
(boolean readOnly) Read Only propertyvoid
setRowCollapsedNodes
(List<String> rowCollapsedNodes) Collapsed row nodes propertyvoid
setRowCustomOrder
(String rowCustomSortedElements) Row Custom Order propertyvoid
setRowHeaderWidth
(Integer width) Row header width propertyvoid
setRowOwnerDisplayMode
(MatrixSettings.OwnerDisplayMode displayType) Row owner display mode propertyvoid
setRowSortingMode
(MatrixSettings.SortingMode sortingMode) Row sorting mode propertyvoid
setRowSortingMode
(MatrixSettings.SortingMode sortingMode, boolean handleOrderTag) Row sorting mode propertyvoid
Show Elements propertyvoid
setShowInnerDependencies
(boolean showInnerDependencies) Show inner dependencies propertyvoid
setSuppressCriteriaArea
(boolean suppress) Suppress criteria area propertyvoid
setTakeWholeModelAsScope
(boolean wholeModelAsScope) Whole model as scope property
-
Constructor Details
-
MatrixSettings
Loads matrix settings for this element- Parameters:
matrixElement
- matrix diagram element
-
-
Method Details
-
getColumnTextDirection
Column text direction property- Returns:
- text direction property
-
setColumnTextDirection
Column text direction property- Parameters:
direction
- text direction property
-
setShowInnerDependencies
public void setShowInnerDependencies(boolean showInnerDependencies) Show inner dependencies property- Parameters:
showInnerDependencies
- Show inner dependencies property
-
isShowInnerDependencies
public boolean isShowInnerDependencies()Show inner dependencies property- Returns:
- Show inner dependencies property
-
setShowElementsOption
Show Elements property- Parameters:
option
- Show Elements property
-
getShowElementsOption
Show Elements property- Returns:
- Show Elements property
-
setColumnHeaderHeight
public void setColumnHeaderHeight(int height) Column header height property- Parameters:
height
- Column header height property
-
getColumnHeaderHeight
Column header height property- Returns:
- Column header height property
-
setRowHeaderWidth
Row header width property- Parameters:
width
- Row header width property
-
getRowHeaderWidth
Row header width property- Returns:
- Row header width property
-
setDirection
Dependency direction property- Parameters:
direction
- Dependency direction property
-
getDirection
Dependency direction property- Returns:
- Dependency direction property
-
isEditable
public boolean isEditable()Is dependency matrix elements may be changed- Returns:
- Is matrix element editable
-
getDependencyCriteria
Dependency criteria property- Returns:
- Dependency criteria property
-
setDependencyCriteria
Dependency criteria property- Parameters:
dependencyCriteria
- Dependency criteria property
-
getMatrixElement
Dependency matrix element- Returns:
- Dependency matrix diagram element
-
setSuppressCriteriaArea
public void setSuppressCriteriaArea(boolean suppress) Suppress criteria area property- Parameters:
suppress
- Suppress criteria area property
-
isCriteriaAreaSuppressed
public boolean isCriteriaAreaSuppressed()Suppress criteria area property- Returns:
- Suppress criteria area property
-
isLegendEnabled
public boolean isLegendEnabled() -
getLegendLocation
-
setColumnOwnerDisplayMode
Column owner display mode property- Parameters:
displayType
- Column owner display mode property
-
getColumnOwnerDisplayMode
Column owner display mode property- Returns:
- Column owner display mode property
-
setRowOwnerDisplayMode
Row owner display mode property- Parameters:
displayType
- Row owner display mode property
-
getRowOwnerDisplayMode
Row owner display mode property- Returns:
- Row owner display mode property
-
getRowCollapsedNodes
Collapsed row nodes property- Returns:
- Collapsed row nodes property
-
setRowCollapsedNodes
Collapsed row nodes property- Parameters:
rowCollapsedNodes
- Collapsed row nodes property
-
getColumnCollapsedNodes
Collapsed column nodes property- Returns:
- Collapsed column nodes property
-
setColumnCollapsedNodes
Collapsed column nodes property- Parameters:
columnCollapsedNodes
- Collapsed column nodes property
-
getDescriptionAreaText
Description area property- Returns:
- Description area property
-
setDescriptionArea
Description area property- Parameters:
descriptionArea
- Description area property
-
setHideTypes
public void setHideTypes(boolean hideTypes) Hide Types property- Parameters:
hideTypes
- Hide Types property
-
areTypesHidden
public boolean areTypesHidden()Hide Types property- Returns:
- Hide Types property
-
setHideScope
public void setHideScope(boolean hideScope) Scope Hidden property- Parameters:
hideScope
- Scope Hidden property
-
isScopeHidden
public boolean isScopeHidden()Scope Hidden property- Returns:
- Scope Hidden property
-
setHideDependencyCriteria
public void setHideDependencyCriteria(boolean hideCriteria) Hide dependency criteria property- Parameters:
hideCriteria
- hide dependency criteria property
-
isDependencyCriteriaHidden
public boolean isDependencyCriteriaHidden()Hide dependency criteria property- Returns:
- hide dependency criteria property
-
setRowSortingMode
Row sorting mode property- Parameters:
sortingMode
- Row sorting mode property
-
setRowSortingMode
Row sorting mode property- Parameters:
sortingMode
- Row sorting mode propertyhandleOrderTag
- if true, and the provided sorting mode is not Custom, clears the rowCustomOrder tag
-
clearRowCustomOrder
public void clearRowCustomOrder() -
getRowSortingMode
Row sorting mode property- Returns:
- Row sorting mode property
-
setColumnSortingMode
Column sorting mode property- Parameters:
sortingMode
- Column sorting mode property
-
setColumnSortingMode
Column sorting mode property. If the mode is not Custom, cleans up the columnCustomOrder- Parameters:
sortingMode
- Column sorting mode propertyhandleOrderTag
- if true, and the provided sorting mode is not Custom, clears the columnCustomOrder tag
-
clearColumnCustomOrder
public void clearColumnCustomOrder() -
getColumnSortingMode
Column sorting mode property- Returns:
- Column sorting mode property
-
setReadOnly
public void setReadOnly(boolean readOnly) Read Only property- Parameters:
readOnly
- Read Only property
-
isReadOnly
public boolean isReadOnly()Read Only property- Returns:
- Read Only property
-
setTakeWholeModelAsScope
public void setTakeWholeModelAsScope(boolean wholeModelAsScope) Whole model as scope property- Parameters:
wholeModelAsScope
- Whole model as scope property
-
isWholeModelTakenAsScope
public boolean isWholeModelTakenAsScope()Whole model as scope property- Returns:
- Whole model as scope property
-
getColumnCustomOrder
Column custom order property- Returns:
- Column custom order property
-
setColumnCustomOrder
Column custom order property- Parameters:
columnCustomSortedElements
- Column custom order property
-
getRowCustomOrder
Row Custom Order property- Returns:
- Row custom order property
-
setRowCustomOrder
Row Custom Order property- Parameters:
rowCustomSortedElements
- Row custom order property
-