Class NestedFormatViewerPanel.Renderer

    • Constructor Detail

      • Renderer

        public Renderer()
        Initializes the renderer.
    • Method Detail

      • getIcon

        protected ImageIcon getIcon​(String classname)
        Tries to obtain the icon for the given class.
        classname - the class to obtain an icon for
        the associated icon or null if not found
      • 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