Class Renderer

    • Field Detail

      • m_IconCollapsed

        protected ImageIcon m_IconCollapsed
        the collapsed icon.
      • m_IconExpanded

        protected ImageIcon m_IconExpanded
        the expanded icon.
      • m_IconArrayElement

        protected ImageIcon m_IconArrayElement
        the array element icon.
      • m_IconHash

        protected ImageIcon m_IconHash
        the hash icon.
      • m_IconObject

        protected ImageIcon m_IconObject
        the empty icon.
    • Constructor Detail

      • Renderer

        public Renderer()
        Initializes the renderer.
    • Method Detail

      • getTreeCellRendererComponent

        public Component getTreeCellRendererComponent​(JTree tree,
                                                      Object value,
                                                      boolean sel,
                                                      boolean expanded,
                                                      boolean leaf,
                                                      int row,
                                                      boolean hasFocus)
        For rendering the cell.
        Specified by:
        getTreeCellRendererComponent in interface TreeCellRenderer
        Overrides:
        getTreeCellRendererComponent in class DefaultTreeCellRenderer
        Parameters:
        tree - the tree
        value - the node
        sel - whether the element is selected
        expanded - whether the node is expanded
        leaf - whether the node is a leaf
        row - the row in the tree
        hasFocus - whether the node is focused
        Returns:
        the rendering component