Class Matrix
java.lang.Object
com.nomagic.reportwizard.tools.dependencymatrix.Matrix
Class for getting row elements, column name and relation between row and column elements.
- Since:
- Feb 1, 2012
-
Constructor Summary
ConstructorsConstructorDescriptionMatrix(com.nomagic.magicdraw.dependencymatrix.DependencyMatrix matrix) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetCellDependencies(ElementNode rowNode, ElementNode columnNode) Get list of relations inside the cell identified row node and column nodeGet all column element.Deprecated.com.nomagic.magicdraw.dependencymatrix.DependencyMatrixGets dependency matrix instance.getRelation(Element rowElement, Element columnElement) Get list of relation between rowElement and column element.Get all row elements.getRows()Deprecated.usegetRowElements()voidsetMatrix(com.nomagic.magicdraw.dependencymatrix.DependencyMatrix matrix) Sets dependency matrix instance.
-
Constructor Details
-
Matrix
public Matrix(com.nomagic.magicdraw.dependencymatrix.DependencyMatrix matrix) Constructor- Parameters:
matrix- Dependency Matrix instance
-
-
Method Details
-
getRowElements
Get all row elements.- Returns:
- list of elements
-
getColumnElements
Get all column element.- Returns:
- list of elements
-
getRows
Deprecated.usegetRowElements() -
getColumns
Deprecated. -
getRowNodes
- Returns:
- list of nodes that represent matrix rows, in the same order as they are actually displayed in the diagram. Grouping packages, that do not belong to the matrix data are skipped.
-
getColumnNodes
- Returns:
- list of nodes that represent matrix rows, in the same order as they are actually displayed in the diagram. Grouping packages, that do not belong to the matrix data are skipped.
-
getCellDependencies
Get list of relations inside the cell identified row node and column node -
getRelation
Get list of relation between rowElement and column element.- Parameters:
rowElement- row elementcolumnElement- column element- Returns:
- list of Relation
-
getMatrix
public com.nomagic.magicdraw.dependencymatrix.DependencyMatrix getMatrix()Gets dependency matrix instance.- Returns:
- matrix
-
setMatrix
public void setMatrix(com.nomagic.magicdraw.dependencymatrix.DependencyMatrix matrix) Sets dependency matrix instance.- Parameters:
matrix- matrix
-
getColumnElements()