Class DOMRenderer

    • Field Detail

      • m_Icon

        protected Icon m_Icon
        the general icon for elements.
    • Constructor Detail

      • DOMRenderer

        public DOMRenderer()
        Initializes the renderer.
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
      • 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
        getTreeCellRendererComponent in class DefaultTreeCellRenderer
        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
        the rendering component