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

    • getRowElementNode

      @CheckForNull public static ElementNode getRowElementNode(JTable table, int row)
      ElementNode represented by given row.
      Parameters:
      table - main table component
      row - row index
      Returns:
      row element node
    • getColumnElementNode

      @CheckForNull public static ElementNode getColumnElementNode(JTable table, int column)
      ElementNode represented by given column.
      Parameters:
      table - main table component
      column - row index
      Returns:
      column element node
    • 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 in regard to 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