javax.swing.tree
public interface TreeCellRenderer
TreeCellRenderer
is used by the {@link JTree} component to
paint individual tree elements (nodes).
Method Summary | |
---|---|
Component | getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
Returns a component that has been configured to display one element (or
node) in a {@link JTree} component. |
Parameters: tree the tree. value the value to render. selected is the tree element selected? expanded is the tree element expanded? leaf is the tree element a leaf node? row the row index. hasFocus does the tree element have the focus?
Returns: A component that is configured for rendering the tree element.