Class RendererHelper
java.lang.Object
com.nomagic.magicdraw.dependencymatrix.ui.table.renderer.RendererHelper
Helper methods used in the Dependency Matrix renderer components
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Element
getHeaderElement
(JTable table, int row, int column) Gets element from row or column header according to the row and column indexes This method because custom column header components do not return exact element as value of the columnstatic String
getNameExtension
(JTable table, int row, int column, String currentText) Returns name of the column with regards of its hierarchy (collapsed package names in compact tree mode)static boolean
isExpandedColumnGroupHeader
(int column) Checks if this column is one of the expanded group headers (e.g.
-
Constructor Details
-
RendererHelper
public RendererHelper()
-
-
Method Details
-
getHeaderElement
Gets element from row or column header according to the row and column indexes This method because custom column header components do not return exact element as value of the column- Parameters:
table
- main table componentrow
- row indexcolumn
- column index- Returns:
- column element instance
-
getNameExtension
Returns name of the column with regards of its hierarchy (collapsed package names in compact tree mode)- Parameters:
table
- main table componentrow
- row indexcolumn
- column indexcurrentText
- text to add extension to- Returns:
- full text of the column element
-
isExpandedColumnGroupHeader
public static boolean isExpandedColumnGroupHeader(int column) Checks if this column is one of the expanded group headers (e.g. package)- Parameters:
column
- column index- Returns:
- true if it is column group header
-