Class RendererHelper
- java.lang.Object
-
- com.nomagic.magicdraw.dependencymatrix.ui.table.renderer.RendererHelper
-
@OpenApiAll public class RendererHelper extends java.lang.Object
Helper methods used in the Dependency Matrix renderer components
-
-
Constructor Summary
Constructors Constructor Description RendererHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Element
getHeaderElement(javax.swing.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 java.lang.String
getNameExtension(javax.swing.JTable table, int row, int column, java.lang.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.
-
-
-
Method Detail
-
getHeaderElement
@CheckForNull public static Element getHeaderElement(javax.swing.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 column- Parameters:
table
- main table componentrow
- row indexcolumn
- column index- Returns:
- column element instance
-
getNameExtension
public static java.lang.String getNameExtension(javax.swing.JTable table, int row, int column, java.lang.String currentText)
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
-
-