Class 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 column
      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)
      static boolean isExpandedColumnGroupHeader​(int column)
      Checks if this column is one of the expanded group headers (e.g.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RendererHelper

        public RendererHelper()
    • 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 component
        row - row index
        column - 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 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