java.lang.Object
com.nomagic.magicdraw.dependencymatrix.ui.table.renderer.RendererHelper

@OpenApiAll public class RendererHelper extends Object
Helper methods used in the Dependency Matrix renderer components
  • Constructor Details

    • RendererHelper

      public RendererHelper()
  • Method Details

    • getHeaderElement

      @CheckForNull public static 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 column
      Parameters:
      table - main table component
      row - row index
      column - column index
      Returns:
      column element instance
    • getNameExtension

      public static 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)
      Parameters:
      table - main table component
      row - row index
      column - column index
      currentText - 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